profile.py updates - avatars and file transfers

This commit is contained in:
ingvar1995 2016-03-16 22:59:15 +03:00
parent e61f600d59
commit 1a996522f1
4 changed files with 38 additions and 6 deletions

View file

@ -165,7 +165,7 @@ class ProfileSettings(CenteredWidget):
Profile.get_instance().reset_avatar()
def set_avatar(self):
name = QtGui.QFileDialog.getOpenFileName(self, 'Open file')
name = QtGui.QFileDialog.getOpenFileName(self, 'Open file', None, 'Image Files (*.png *.jpg *.bmp)')
print name
if name[0]:
with open(name[0], 'rb') as f: