1
# -*- coding: utf-8 -*-
3
'''Test module for ImageAreaSelector widget'''
8
from PyQt4 import QtGui
13
from gui.qt4ui import widgets
14
from gui.qt4ui.Dialog import Dialog
18
class SessionStub (object):
19
class ConfigDir (object):
21
return '/home/fastfading/src/emesene/emesene2/'\
22
'messenger.hotmail.com/' \
23
'atarawhisky@hotmail.com/avatars/last'
25
self.config_dir = self.ConfigDir()
30
'''Makes varios test stuff'''
32
def response_cb(response, pixmap):
33
print response, pixmap
36
os.putenv('QT_NO_GLIB', '1')
37
qapp = QtGui.QApplication(sys.argv)
38
pixmap = QtGui.QPixmap('themes/images/default/logo.png')
39
Dialog.crop_image(response_cb, 'themes/images/default/logo.png')
43
if __name__ == "__main__":