dabodemo Commit
Revision 294
Date: 2005-09-08 23:00:30 -0700 (Thu, 08 Sep 2005)
Author: paul

Changed:
U   trunk/tutorial/autoBindEvents.py

Log:
Updated the demo to show the new form binding feature.


Diff:
Modified: trunk/tutorial/autoBindEvents.py
===================================================================
--- trunk/tutorial/autoBindEvents.py    2005-09-08 00:01:44 UTC (rev 293)
+++ trunk/tutorial/autoBindEvents.py    2005-09-09 06:00:30 UTC (rev 294)
@@ -18,7 +18,7 @@
                self.Caption = "autoBindEvents() Demo"
 
        def afterInit(self):
-               self.addObject(MyButton, Caption="Hit me!")
+               self.addObject(MyButton, Caption="Hit me!", RegID="MyButton")
 
        def onActivate(self, evt):
                print "MyForm.Activate"
@@ -26,6 +26,8 @@
        def onDeactivate(self, evt):
                print "MyForm.Deactivate"
 
+       def onHit_MyButton(self, evt):
+               print "onHit_MyButton"
 
 app.MainForm = MyForm()
 app.start()




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev

Reply via email to