[PyQt] QtCore.QMetaObject.connectSlotsByName(obj) question
Bruno Tikami
brunotikami at gmail.com
Wed Oct 15 22:25:26 BST 2008
Hi all,
I'm trying to get pyuic module to work with Qt4Designer .ui files but I'm
facing some problems to connect the slots.
Here's what I have:
[login_ui.py]
class LoginDialog():
...
self.okButton = QtGui.QPushButton(Dialog)
self.okButton.setObjectName("okButton")
and, in another python module, I have the slots:
[login_slots.py]
def on_okButton_clicked(self):
print "Hello World"
how can I connect the on_okButton_clicked slot to the LoginDialog's signals
? Is it possible?
thanks!
Bruno Tikami
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20081015/bc3a9e4a/attachment.html
More information about the PyQt
mailing list