[PyQt] simpler 'connect' function
Peter Shinners
pshinners at blizzard.com
Thu Jan 10 17:26:16 GMT 2008
I'm sure this has come up, but as I write my Pyqt code, I keep noticing
that the QObject.connect call feels like a wart. Is there already a pyqt
shortcut for a call like this?
QtCore.QObject.connect(myButton, QtCore.SIGNAL("clicked()"),
onClicked)
The closer I could be to something like the following, the better.
myButton.connect("clicked()", onClicked)
Are there any shortcuts for wiring signals and slots I haven't noticed?
More information about the PyQt
mailing list