Difference between revisions of "VRET pyQt"
(→Arguments in callback functions) |
|||
Line 13: | Line 13: | ||
def createCallBackFunction(argument): | def createCallBackFunction(argument): | ||
+ | :def function(): | ||
+ | ::self.callBackFunction(argument) | ||
+ | |||
+ | |||
+ | :return function | ||
+ | |||
+ | self.connect(self.buttonObject, QtCore.SIGNAL('clicked()'),self.createCallBackFunction("argument")) | ||
+ | |||
+ | |||
+ | <Aanpassing Chris> | ||
+ | |||
+ | def callBackFunction(self,argument): | ||
+ | :pass | ||
+ | |||
+ | def createCallBackFunction(self,argument): | ||
:def function(): | :def function(): | ||
::self.callBackFunction(argument) | ::self.callBackFunction(argument) |
Revision as of 12:59, 16 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"))
<Aanpassing Chris>
def callBackFunction(self,argument):
- pass
def createCallBackFunction(self,argument):
- def function():
- self.callBackFunction(argument)
- return function
self.connect(self.buttonObject, QtCore.SIGNAL('clicked()'),self.createCallBackFunction("argument"))