jan: thuban/Doc/manual thuban-manual.xml,1.24,1.25
cvs@intevation.de
cvs at intevation.de
Sun May 16 11:38:50 CEST 2004
Author: jan
Update of /thubanrepository/thuban/Doc/manual
In directory doto:/tmp/cvs-serv16162
Modified Files:
thuban-manual.xml
Log Message:
updated sample file to use FindOrInsertMenu().
Index: thuban-manual.xml
===================================================================
RCS file: /thubanrepository/thuban/Doc/manual/thuban-manual.xml,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -d -r1.24 -r1.25
--- thuban-manual.xml 22 Jan 2004 14:40:32 -0000 1.24
+++ thuban-manual.xml 16 May 2004 09:38:48 -0000 1.25
@@ -1831,9 +1831,7 @@
helptext = _('Welcome everyone on this planet')))
# 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'))
+extensions_menu = main_menu.FindOrInsertMenu('extensions', _('E&xtensions'))
# finally bind the new command with an entry in the extensions menu
extensions_menu.InsertItem('hello_world')
More information about the Thuban-devel
mailing list
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)