[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    [PyQt] simpler 'connect' function
From:       "Peter Shinners" <pshinners () blizzard ! com>
Date:       2008-01-10 17:26:16
Message-ID: EFF2EC227B08C542A0A947FF5D1A99F1063234FD () BL-EXCHANGE ! corp ! blizzard ! net
[Download RAW message or body]

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?

_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic