Author: jcater
Date: 2006-10-23 22:48:04 -0500 (Mon, 23 Oct 2006)
New Revision: 8914

Modified:
   trunk/gnue-designer/src/ui/wx/Base.py
Log:
check for GNUE_WX_VERSION in environment, and wxversion.select() it (for 
testing different versions)

Modified: trunk/gnue-designer/src/ui/wx/Base.py
===================================================================
--- trunk/gnue-designer/src/ui/wx/Base.py       2006-10-23 16:15:43 UTC (rev 
8913)
+++ trunk/gnue-designer/src/ui/wx/Base.py       2006-10-24 03:48:04 UTC (rev 
8914)
@@ -34,11 +34,16 @@
 # ---------------------------------------------------------------------------
 # wx Imports
 # ---------------------------------------------------------------------------
-try: 
+try:
     if not hasattr(sys, 'frozen'):
         import wxversion
-        wxversion.select ('2.6')
-except ImportError: 
+        # For development use:
+        if os.environ.has_key('GNUE_WX_VERSION'):
+            wxversion.select(os.environ['GNUE_WX_VERSION'])
+        else:
+            wxversion.select ('2.6')
+
+except ImportError:
     pass  # wxselect not installed
 
 try:  # Make sure 2.6 did in fact load



_______________________________________________
commit-gnue mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/commit-gnue

Reply via email to