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') |