Author: johannes
Date: 2006-10-27 01:50:50 -0500 (Fri, 27 Oct 2006)
New Revision: 8938

Modified:
   trunk/gnue-forms/src/uidrivers/wx26/UIdriver.py
   trunk/gnue-forms/src/uidrivers/wx26/widgets/form.py
Log:
Select the wx-version using ensureMinimal() instead of select(), so 
users having a version above 2.6 installed only can still use forms :)


Modified: trunk/gnue-forms/src/uidrivers/wx26/UIdriver.py
===================================================================
--- trunk/gnue-forms/src/uidrivers/wx26/UIdriver.py     2006-10-27 03:06:09 UTC 
(rev 8937)
+++ trunk/gnue-forms/src/uidrivers/wx26/UIdriver.py     2006-10-27 06:50:50 UTC 
(rev 8938)
@@ -28,10 +28,7 @@
 try:
   if not hasattr(sys, 'frozen'):
     import wxversion
-    wxversion.select ('2.6')
-  import wx
-  if wx.VERSION [:2] < (2, 6):
-    raise ImportError
+    wxversion.ensureMinimal('2.6')
 
 except ImportError:
   raise Exceptions.DriverNotSupported, \

Modified: trunk/gnue-forms/src/uidrivers/wx26/widgets/form.py
===================================================================
--- trunk/gnue-forms/src/uidrivers/wx26/widgets/form.py 2006-10-27 03:06:09 UTC 
(rev 8937)
+++ trunk/gnue-forms/src/uidrivers/wx26/widgets/form.py 2006-10-27 06:50:50 UTC 
(rev 8938)
@@ -319,7 +319,8 @@
         """
         Display the normal mouse cursor on all windows of the application.
         """
-        wx.EndBusyCursor()
+        if wx.IsBusy:
+            wx.EndBusyCursor()
 
     # -------------------------------------------------------------------------
 



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

Reply via email to