On 4/27/12 2:03 PM, Ed Leafe wrote:
> dabo Commit
> Revision 7155
> Date: 2012-04-27 14:03:34 -0700 (Fri, 27 Apr 2012)
> Author: Ed
> Trac:http://trac.dabodev.com/changeset/7155
>
> Changed:
> U   trunk/dabo/ui/uiwx/dFormMixin.py
>
> Log:
> Cleaned up how the form restores its WindowState.

Can you explain why you need to temporarily set the form's visibility to True? 
It is 
messing up my app by showing some modal forms I initially instantiate as 
hidden, at 
least on Linux and Mac.

If I comment out line 1126 where Visible is set to True, my problem is fixed. 
I'm 
referring to this part of the commit:

@@ -1120,6 +1121,9 @@
        def _setWindowState(self, value):
                if self._constructed():
                        lowvalue = ustr(value).lower().strip()
+                       vis = self.Visible
+                       self.lockDisplay()
+                       self.Visible = True
                        if lowvalue == "normal":
                                if self.IsFullScreen():
                                        self.ShowFullScreen(False)
@@ -1137,8 +1141,12 @@
                        elif lowvalue == "fullscreen":
                                self.ShowFullScreen(True)
                        else:
+                               self.unlockDisplay()
                                raise ValueError("The only possible values are "
                                                                "'Normal', 
'Minimized', 'Maximized', and 'FullScreen'")
+                       self._windowStateSet = True
+                       self.Visible = vis
+                       self.unlockDisplay()
                else:
                        self._properties["WindowState"] = value

Paul

_______________________________________________
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