Difference between revisions of "VRET pyQt"
| Line 8: | Line 8: | ||
== Tips == | == Tips == | ||
| + | === Arguments in callback functions === | ||
| + | def callBackFunction(argument): | ||
| + | :pass | ||
| + | |||
| + | def createCallBackFunction(argument): | ||
| + | :def function(): | ||
| + | ::self.callBackFunction(argument) | ||
| + | |||
| + | |||
| + | :return function | ||
| + | |||
| + | self.connect(self.buttonObject, QtCore.SIGNAL('clicked()'),self.createCallBackFunction("argument")) | ||
== Documentation == | == Documentation == | ||
Revision as of 11:17, 8 June 2009
Contents
Why pyQt or Qt
Tutorials
Tips
Arguments in callback functions
def callBackFunction(argument):
- pass
def createCallBackFunction(argument):
- def function():
- self.callBackFunction(argument)
- return function
self.connect(self.buttonObject, QtCore.SIGNAL('clicked()'),self.createCallBackFunction("argument"))