View Single Post
Posts: 70 | Thanked: 39 times | Joined on Mar 2010
#4
Code:
def __init__(self):
    ...
    self.connect(button1, SIGNAL("pressed()"), lambda: self.pressedNum(1))
    ...
Code:
def pressedNum(self, num):
    self.computeFactorial(num)
 

The Following 2 Users Say Thank You to cheungs For This Useful Post: