hi,
I'm having trouble with the signal/slot messages. I'm trying to catch a
signal and then execute a method that i wrote. But instead of waiting for
the signal it executes the method when i call the connect method.
I make a wizard with a page. the page has a toolbar with an icon.
qWizard = QWizard()
qPage = QWizardPage()
openToolBar = QToolBar()
self.openAct = QtGui.QAction(QtGui.QIcon(QString('open.png')), 'Open File',
openToolBar) openToolBar.connect(self.openAct, QtCore.SIGNAL('triggered()'),
self.showOpenFileDialog(qPage))
does anybody know what i'm doing wrong? Or do you know another way to catch
the triggered() signal and execute the code of the
showOpenFileDialog-method?
thanks in advance,
nenduvel
--
View this message in context:
http://www.nabble.com/connect-method-launched-command-tp23840766p23840766.html
Sent from the PyQt mailing list archive at Nabble.com.
_______________________________________________
PyQt mailing list [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt