View Single Post
Posts: 3,319 | Thanked: 5,610 times | Joined on Aug 2008 @ Finland
#22
Originally Posted by noobmonkey View Post
[*]Can someone explain simply how i get a button to call a function please? - i understand the "def part" - created a function, but really can't figure out how to simply call it from the button... is there any easy guide?
self.connect(self.myButton, QtCore.SIGNAL("clicked()"), self.clickFoo)

(obviously the exact object names will differ, but you get the idea)
__________________
Blogging about mobile linux - The Penguin Moves!
Maintainer of PyQt (see introduction and docs), AppWatch, QuickBrownFox, etc
 

The Following User Says Thank You to attila77 For This Useful Post: