basecontact created
This commit is contained in:
parent
40d0b03227
commit
6703cbd301
5 changed files with 227 additions and 106 deletions
|
@ -3,14 +3,9 @@ import contact
|
|||
|
||||
class Groupchat(contact.Contact):
|
||||
|
||||
def __init__(self, *args):
|
||||
def __init__(self, group_id, *args):
|
||||
super().__init__(args)
|
||||
self._id = group_id
|
||||
|
||||
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()
|
||||
super().load_avatar('group.png')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue