dabo Commit
Revision 6803
Date: 2011-08-30 11:28:29 -0700 (Tue, 30 Aug 2011)
Author: Jacekk
Trac: http://trac.dabodev.com/changeset/6803
Changed:
U trunk/dabo/ui/uiwx/dPageFrameMixin.py
Log:
Fix page changing event propagation issue from child to parent pageframe.
Diff:
Modified: trunk/dabo/ui/uiwx/dPageFrameMixin.py
===================================================================
--- trunk/dabo/ui/uiwx/dPageFrameMixin.py 2011-08-27 15:06:01 UTC (rev
6802)
+++ trunk/dabo/ui/uiwx/dPageFrameMixin.py 2011-08-30 18:28:29 UTC (rev
6803)
@@ -40,6 +40,9 @@
def __onPageChanging(self, evt):
"""The page has not yet been changed, so we can veto it if
conditions call for it."""
+ if self != evt.EventObject:
+ # Avoid events propagated from child frames.
+ return
oldPageNum = evt.GetOldSelection()
newPageNum = evt.GetSelection()
if self._beforePageChange(oldPageNum, newPageNum) is False:
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message:
http://leafe.com/archives/byMID/[email protected]