jan: thuban/Extensions/svgexport maplegend.py,1.2,1.3
cvs@intevation.de
cvs at intevation.de
Wed Nov 24 23:52:08 CET 2004
Author: jan
Update of /thubanrepository/thuban/Extensions/svgexport
In directory doto:/tmp/cvs-serv27953
Modified Files:
maplegend.py
Log Message:
Moved the menu entry from Extensions
to Experimental menu since this module has yet not reached a stable
status (ie. 1.0).
Index: maplegend.py
===================================================================
RCS file: /thubanrepository/thuban/Extensions/svgexport/maplegend.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- maplegend.py 15 Nov 2004 16:27:41 -0000 1.2
+++ maplegend.py 24 Nov 2004 22:52:06 -0000 1.3
@@ -168,14 +168,13 @@
# See Thuban/UI/menu.py for the API of the Menu class
from Thuban.UI.mainwindow import main_menu
-# find the extensions menu (create it anew if not found)
-extensions_menu = main_menu.find_menu('extensions')
-if extensions_menu is None:
- extensions_menu = main_menu.InsertMenu('extensions', _('E&xtensions'))
-
# create a new command and register it
registry.Add(Command('write_legend', _('Write SVG Legend'), write_legend,
helptext = _('Write a basic Legend for the map.')))
+# find the experimental menu (create it anew if not found)
+experimental_menu = main_menu.FindOrInsertMenu('experimental',
+ _('Experimenta&l'))
+
# finally bind the new command with an entry in the extensions menu
-extensions_menu.InsertItem('write_legend')
+experimental_menu.InsertItem('write_legend')
More information about the Thuban-devel
mailing list
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)