icon and gc.py
This commit is contained in:
parent
c0601444d9
commit
40d0b03227
16
src/groupchat.py
Normal file
16
src/groupchat.py
Normal 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
BIN
src/images/group.png
Executable file
Binary file not shown.
After Width: | Height: | Size: 4.0 KiB |
Loading…
Reference in New Issue
Block a user