dabo Commit
Revision 7309
Date: 2013-01-04 09:08:11 -0800 (Fri, 04 Jan 2013)
Author: Ed
Trac: http://trac.dabodev.com/changeset/7309

Changed:
U   trunk/dabo/ui/uiwx/dPemMixin.py

Log:
Fixed an issue reported by Carey Gagnon in which dynamic properties were not 
being updated for objects that had their Visible property set to False.


Diff:
Modified: trunk/dabo/ui/uiwx/dPemMixin.py
===================================================================
--- trunk/dabo/ui/uiwx/dPemMixin.py     2013-01-04 08:15:02 UTC (rev 7308)
+++ trunk/dabo/ui/uiwx/dPemMixin.py     2013-01-04 17:08:11 UTC (rev 7309)
@@ -1341,14 +1341,19 @@
                        return
                # Check paged controls event propagation to inactive pages.
                try:
-                       updateInactive = self.Parent.UpdateInactivePages
+                       isPage = isinstance(self.Parent, 
dabo.ui.dPageFrameMixin)
                except AttributeError:
-                       updateInactive = None
-               if updateInactive == False and self.Parent.SelectedPage != self:
-                       return
-               if not updateInactive and not self.Visible:
-                       # (some platforms have inactive pages not visible)
-                       return
+                       isPage = False
+               if isPage:
+                       try:
+                               updateInactive = self.Parent.UpdateInactivePages
+                       except AttributeError:
+                               updateInactive = None
+                       if updateInactive == False and self.Parent.SelectedPage 
!= self:
+                               return
+                       if not updateInactive and not self.Visible:
+                               # (some platforms have inactive pages not 
visible)
+                               return
                self.update()
 
 



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

Reply via email to