dabo Commit
Revision 6312
Date: 2011-01-14 10:02:51 -0800 (Fri, 14 Jan 2011)
Author: Paul
Trac: http://trac.dabodev.com/changeset/6312

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

Log:
Since r6217, at least on Linux, the resizeExecute/endResize loop was running 
continuously, causing poor performance and a reproducable segfault in my
application. I think the update() call must have been resulting in a new
Resize event. Clearing the update flag after instead of before the update() 
call fixes the issue for me.


Diff:
Modified: trunk/dabo/ui/uiwx/dLabel.py
===================================================================
--- trunk/dabo/ui/uiwx/dLabel.py        2011-01-12 13:53:44 UTC (rev 6311)
+++ trunk/dabo/ui/uiwx/dLabel.py        2011-01-14 18:02:51 UTC (rev 6312)
@@ -43,7 +43,6 @@
                except dabo.ui.deadObjectException:
                        # Form is being destroyed; bail
                        return
-               plat = self.Application.Platform
                self.SetLabel(self._caption)
                wd = {True: self.Width, False: -1}[self.WordWrap]
                self.Wrap(wd)
@@ -55,8 +54,8 @@
                flag must be reset outside of the execution method.
                """
                self.Parent.unlockDisplayAll()
-               self._inResizeEvent = False
                self.update()
+               self._inResizeEvent = False
 
 
        # property get/set functions



_______________________________________________
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