Ed Leafe <[EMAIL PROTECTED]> writes: > Even cooler is passing the binding to the constructor. You can > create a button like this: > > btn = dabo.ui.dButton(self, Caption="Wow", OnHit=self.onWowButton) >
Thanks Ed. I tried your code and got an error: TypeError: 'OnHit' is an invalid keyword argument for this function I tried changing OnHit to onHit, same result. Other changes work as you explained. btw, when i asked the question about __init__ in the previous thread, really i wasn't trying to modify the __init__ function. i've read it somewhere that it is not recommended. what i was looking for is: where can i find information about arguments used to create a dabo ui object, in this case, dButton. where can i find info. about passing onHit as an argument, or other arguments? i understand dabo's documentation still needs lots of work and this is certainly not complaining. i'm just a little excited, especially after watching your pycon presentation videos. _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
