joey: thuban/Extensions/wms wms.py,1.3,1.4

cvs@intevation.de cvs at intevation.de
Sun Apr 11 19:38:13 CEST 2004


Author: joey

Update of /thubanrepository/thuban/Extensions/wms
In directory doto:/tmp/cvs-serv948

Modified Files:
	wms.py 
Log Message:
Switch to using Thuban{Begin,End}BusyCursor instead of the pure
wxWidgets variants.

Index: wms.py
===================================================================
RCS file: /thubanrepository/thuban/Extensions/wms/wms.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- wms.py	10 Apr 2004 19:07:59 -0000	1.3
+++ wms.py	11 Apr 2004 17:38:10 -0000	1.4
@@ -37,6 +37,7 @@
      EPSG_DEPRECATED_PROJ_FILE
 from Thuban.UI.command import registry, Command
 import Thuban.UI.mainwindow
+from Thuban.UI.common import ThubanBeginBusyCursor, ThubanEndBusyCursor
 from Thuban import _
 import Thuban.UI.baserenderer
 
@@ -83,9 +84,9 @@
         self.capabilities = None
 
         # Change the cursor to demonstrate that we're busy but working
-        wxBeginBusyCursor()
+        ThubanBeginBusyCursor()
         self.capabilities = WMSCapabilities(url)
-        wxEndBusyCursor()
+        ThubanEndBusyCursor()
 
         # name of the top layer of the remote map
         foo = self.capabilities.getLayers()
@@ -214,7 +215,7 @@
                       'maxx': bbox[2], 'maxy': bbox[3] }
 
         # Change the cursor to demonstrate that we're busy but working
-        wxBeginBusyCursor()
+        ThubanBeginBusyCursor()
 
         wmsclient = WMSClient()
 
@@ -223,7 +224,7 @@
         wms_response = wmsclient.getMap(self.url, self.wmsformat, width, height,
                                    epsg_id, bbox_dict,
                                    [self.layer_name], version = self.capabilities.getVersion())
-        wxEndBusyCursor()
+        ThubanEndBusyCursor()
         return wms_response, self.format
 
 





More information about the Thuban-devel mailing list

This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)