/[thuban]/branches/WIP-pyshapelib-bramz/Extensions/wms/wms.py
ViewVC logotype

Diff of /branches/WIP-pyshapelib-bramz/Extensions/wms/wms.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2202 by joey, Thu Apr 15 07:14:25 2004 UTC revision 2203 by jan, Tue May 11 22:34:49 2004 UTC
# Line 16  everywhere. Line 16  everywhere.
16  """  """
17    
18  __version__ = "$Revision$"  __version__ = "$Revision$"
19    # $Source$
20    # $Id$
21    
22  import os, sys  import os, sys
23  import xml.dom.minidom  import xml.dom.minidom
# Line 26  from wxPython.wx import * Line 28  from wxPython.wx import *
28  from Thuban.Model.proj import Projection  from Thuban.Model.proj import Projection
29  from Thuban.Model.extension import Extension  from Thuban.Model.extension import Extension
30  from Thuban.UI.command import registry, Command  from Thuban.UI.command import registry, Command
31  import Thuban.UI.mainwindow  from Thuban.UI.mainwindow import main_menu
32  from Thuban import _  from Thuban import _
33  import Thuban.UI.baserenderer  import Thuban.UI.baserenderer
34    
# Line 143  registry.Add(Command('wms', _('Add WMS l Line 145  registry.Add(Command('wms', _('Add WMS l
145                           helptext = _('Add a WMS Layer')))                           helptext = _('Add a WMS Layer')))
146    
147  # find the experimental menu (create it anew if not found)  # find the experimental menu (create it anew if not found)
148  main_menu = Thuban.UI.mainwindow.main_menu  experimental_menu = main_menu.FindOrInsertMenu('experimental',
149  experimental_menu = main_menu.find_menu('experimental')                                                 _('Experimenta&l'))
 if experimental_menu is None:  
     experimental_menu = main_menu.InsertMenu('experimental', _('Experimenta&l'))  
150    
151  # finally add the new entry to the experimental menu  # finally add the new entry to the experimental menu
152  experimental_menu.InsertItem('wms')  experimental_menu.InsertItem('wms')

Legend:
Removed from v.2202  
changed lines
  Added in v.2203

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26