icon and gc.py

This commit is contained in:
ingvar1995 2016-06-24 15:20:05 +03:00
parent c0601444d9
commit 40d0b03227
2 changed files with 16 additions and 0 deletions

16
src/groupchat.py Normal file
View File

@ -0,0 +1,16 @@
import contact
class Groupchat(contact.Contact):
def __init__(self, *args):
super().__init__(args)
def load_avatar(self):
avatar_path = curr_directory() + '/images/group.png'
os.chdir(curr_directory() + '/images/')
pixmap = QtGui.QPixmap(QtCore.QSize(64, 64))
pixmap.load(avatar_path)
self._widget.avatar_label.setScaledContents(False)
self._widget.avatar_label.setPixmap(pixmap.scaled(64, 64, QtCore.Qt.KeepAspectRatio))
self._widget.avatar_label.repaint()

BIN
src/images/group.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB