On Tuesday 24 April 2007 06:49, Paul McNett wrote:
> johnf wrote:
> > On Monday 23 April 2007 22:25, Paul McNett wrote:
> >>    def afterInit(self):
> >>            dabo.ui.dButton(pan, RegID="butSwap", Caption="Swap")
> >>    def onHit_butSwap(self, evt):
> >>            self.swap()
> >
> > where is the bindEvent for the button?  It works but I don't see where or
> > how you bind the button to  onHit_butSwap().
>
> It got auto-bound because I followed a naming convention which takes the
> name of the event I want to bind to ("Hit") and the RegID of the button
> that I want to bind to ("butSwap"). The onHit_butSwap(self, evt) is
> present, so Dabo automatically makes the binding. I could have done the
> binding explicitly too which wouldn't have resulted in 2 event bindings.
Thanks Paul.  Just one more thing to remember.
-- 
John Fabiani


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/dabo-users/[EMAIL PROTECTED]

Reply via email to