dabo Commit
Revision 6644
Date: 2011-07-01 04:43:32 -0700 (Fri, 01 Jul 2011)
Author: Jacekk
Trac: http://trac.dabodev.com/changeset/6644

Changed:
U   trunk/dabo/ui/uiwx/dForm.py
U   trunk/dabo/ui/uiwx/dFormMixin.py

Log:
Removed display locking/unlocking code from dFrom/dFormMixin class.
Because wx Refresh() method isn't executed immediately but on the next event 
loop iteration,
display locking is ineffective and does nothing except additional flickering on 
Windows platform.
If it will be a source of problem on OSX I'll add platform exception.  

Diff:
Modified: trunk/dabo/ui/uiwx/dForm.py
===================================================================
--- trunk/dabo/ui/uiwx/dForm.py 2011-06-30 11:05:02 UTC (rev 6643)
+++ trunk/dabo/ui/uiwx/dForm.py 2011-07-01 11:43:32 UTC (rev 6644)
@@ -127,9 +127,7 @@
                else:
                        self.__update()
        def __update(self):
-               self.lockDisplay()
                super(BaseForm, self).update()
-               dabo.ui.callAfter(self.unlockDisplay)
 
 
        def confirmChanges(self, bizobjs=None):

Modified: trunk/dabo/ui/uiwx/dFormMixin.py
===================================================================
--- trunk/dabo/ui/uiwx/dFormMixin.py    2011-06-30 11:05:02 UTC (rev 6643)
+++ trunk/dabo/ui/uiwx/dFormMixin.py    2011-07-01 11:43:32 UTC (rev 6644)
@@ -307,9 +307,7 @@
                else:
                        dabo.ui.callAfterInterval(interval, self.__refresh)
        def __refresh(self):
-               self.Freeze()
                super(dFormMixin, self).refresh()
-               self.Thaw()
 
 
        def reload(self):



_______________________________________________
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