Kelie wrote: > for this function: > > def onHit_btnOk(self): > print "OK button clicked." > > i forgot the "evt" argument and got an error msg like this: > > Traceback (most recent call last): > File "C:\Python25\Lib\site-packages\dabo\lib\eventMixin.py", line 97, in > raiseEvent > bindingFunction(event) > TypeError: onHit_btnOk() takes exactly 1 argument (2 given) > > the last line of error msg should be: > TypeError: onHit_btnOk() takes exactly 2 arguments (1 given)?
No, it is working correctly (this message comes from Python, not Dabo). The caller sent 2 arguments, but your method only accepted 1. _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
