def notifyMe(foo) print foo x = lambda: notifyMe("they call him tim") self.connect(b, SIGNAL("clicked()"), d.close) self.connect(f, SIGNAL("clicked()"), x)
USE_MAEMO = False class showWindowQtGui.QMainWindow): def __init__(self, parent=None): QtGui.QWidget.__init__(self, parent) self.ui = Ui_main_window() self.ui.setupUi(self) try: self.setAttribute(Qt.WA_Maemo5StackedWindow) USE_MAEMO = True except: USE_MAEMO = False