dabo Commit
Revision 2410
Date: 2006-10-31 07:48:38 -0800 (Tue, 31 Oct 2006)
Author: paul
Changed:
U trunk/dabo/ui/uiwx/dButton.py
Log:
This fixes CancelButton on GTK, I believe. I'm really not sure what
prompted me to change it from binding to the form to binding to Parent,
but assume it may have been a problem on Windows, so we should find out
if that is the case.
Diff:
Modified: trunk/dabo/ui/uiwx/dButton.py
===================================================================
--- trunk/dabo/ui/uiwx/dButton.py 2006-10-31 03:40:34 UTC (rev 2409)
+++ trunk/dabo/ui/uiwx/dButton.py 2006-10-31 15:48:38 UTC (rev 2410)
@@ -66,8 +66,9 @@
## I'm making the decision to bind it to
self.Form, even though
## self.Parent is also a valid choice.
### egl: changed the binding on OS X to the form.
Parent just doesn't work.
+ ### pkm: followed suit with GTK (we should test Win
too).
target = self.Parent
- if self.Application.Platform == "Mac":
+ if self.Application.Platform in ("Mac", "GTK"):
target = self.Form
if val:
target.bindKey("esc", self.__onCancelButton)
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev