/[thuban]/branches/WIP-pyshapelib-bramz/Doc/manual/thuban-manual.xml
ViewVC logotype

Diff of /branches/WIP-pyshapelib-bramz/Doc/manual/thuban-manual.xml

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

revision 2052 by frank, Thu Jan 22 14:40:32 2004 UTC revision 2209 by jan, Sun May 16 09:38:48 2004 UTC
# Line 1831  registry.Add(Command('hello_world', _('H Line 1831  registry.Add(Command('hello_world', _('H
1831                       helptext = _('Welcome everyone on this planet')))                       helptext = _('Welcome everyone on this planet')))
1832    
1833  # find the extensions menu (create it anew if not found)  # find the extensions menu (create it anew if not found)
1834  extensions_menu = main_menu.find_menu('extensions')  extensions_menu = main_menu.FindOrInsertMenu('extensions', _('E&xtensions'))
 if extensions_menu is None:  
     extensions_menu = main_menu.InsertMenu('extensions', _('E&xtensions'))  
1835    
1836  # finally bind the new command with an entry in the extensions menu  # finally bind the new command with an entry in the extensions menu
1837  extensions_menu.InsertItem('hello_world')  extensions_menu.InsertItem('hello_world')

Legend:
Removed from v.2052  
changed lines
  Added in v.2209

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26