commit-gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnue] r7591 - trunk/gnue-designer/src/uidrivers/wx/docks


From: btami
Subject: [gnue] r7591 - trunk/gnue-designer/src/uidrivers/wx/docks
Date: Sun, 12 Jun 2005 13:08:29 -0500 (CDT)

Author: btami
Date: 2005-06-12 13:08:28 -0500 (Sun, 12 Jun 2005)
New Revision: 7591

Modified:
   trunk/gnue-designer/src/uidrivers/wx/docks/Docker.py
Log:
wx 2.6 fix on win32

Modified: trunk/gnue-designer/src/uidrivers/wx/docks/Docker.py
===================================================================
--- trunk/gnue-designer/src/uidrivers/wx/docks/Docker.py        2005-06-12 
17:40:54 UTC (rev 7590)
+++ trunk/gnue-designer/src/uidrivers/wx/docks/Docker.py        2005-06-12 
18:08:28 UTC (rev 7591)
@@ -32,6 +32,7 @@
 
 import sys
 from wxPython.wx import *
+from wxPython.wx import __version__ as wxversion
 from gnue.common.apps import RuntimeSettings, GDebug
 from FloatingPane import FloatingPane
 from SplitDock import SplitDock
@@ -42,7 +43,10 @@
     # on win32 a toolbar doesn't reduce the client rectangle height
     # wx doesn't handle this when calculates default pos :(
     if sys.platform == "win32":
-      pos = (0, 36)
+      if wxversion[:3] == '2.6':
+       pos = (0, 0)
+      else:
+       pos = (0, 36)
     else:
       pos = (-1,-1)
 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]