dabo Commit
Revision 6738
Date: 2011-08-05 15:21:45 -0700 (Fri, 05 Aug 2011)
Author: Jacekk
Trac: http://trac.dabodev.com/changeset/6738

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

Log:
- Change SplitterPanelMixin class to inherits from object.
- Added check for destroyed instance in layout method.

Diff:
Modified: trunk/dabo/ui/uiwx/dSplitter.py
===================================================================
--- trunk/dabo/ui/uiwx/dSplitter.py     2011-08-05 19:43:01 UTC (rev 6737)
+++ trunk/dabo/ui/uiwx/dSplitter.py     2011-08-05 22:21:45 UTC (rev 6738)
@@ -11,7 +11,7 @@
 from dabo.ui import makeDynamicProperty
 
 
-class SplitterPanelMixin:
+class SplitterPanelMixin(object):
        def __init__(self, parent, *args, **kwargs):
                if self.ShowSplitMenu:
                        self.bindEvent(dEvents.ContextMenu, 
self._onMixinContextMenu)
@@ -201,6 +201,8 @@
 
 
        def layout(self):
+               if not self:
+                       return
                self.Panel1.layout()
                self.Panel2.layout()
 



_______________________________________________
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]

Reply via email to