dabo Commit
Revision 6086
Date: 2010-10-07 09:55:05 -0700 (Thu, 07 Oct 2010)
Author: Paul
Trac: http://trac.dabodev.com/changeset/6086

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

Log:
Destroy for dSpinner was never raised on Windows. This seems to fix it.

Diff:
Modified: trunk/dabo/ui/uiwx/dSpinner.py
===================================================================
--- trunk/dabo/ui/uiwx/dSpinner.py      2010-10-07 14:33:26 UTC (rev 6085)
+++ trunk/dabo/ui/uiwx/dSpinner.py      2010-10-07 16:55:05 UTC (rev 6086)
@@ -56,6 +56,8 @@
                self.Sizer.append(self._proxy_spinner, "expand", 
valign="middle")
                self.layout()
 
+               self.Bind(wx.EVT_WINDOW_DESTROY, self.__onWxDestroy)
+
                # Because several properties could not be set until after the 
child
                # objects were created, we need to manually call 
_setProperties() here.
                self._properties["NameBase"] = nm
@@ -77,6 +79,9 @@
                self._rerestoreValue()
                dabo.ui.callAfter(self.layout)
 
+       def __onWxDestroy(self, evt):
+               # This doesn't otherwise happen
+               self.raiseEvent(dabo.dEvents.Destroy)
 
        def _rerestoreValue(self):
                # Hack because when restoreValue() was originally called in 
onCreate,
@@ -86,7 +91,6 @@
                        # Additionally, if the user never changes the Value, 
_value will be None:
                        self._value = self.Value
 
-
        def _constructed(self):
                """Returns True if the ui object has been fully created yet, 
False otherwise."""
                return self.__constructed



_______________________________________________
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