1 |
# Copyright (C) 2003 by Intevation GmbH |
# Copyright (C) 2004 by Intevation GmbH |
2 |
# Authors: |
# Authors: |
3 |
# Frank Koormann <[email protected]> |
# Frank Koormann <[email protected]> (2004) |
4 |
# |
# |
5 |
# This program is free software under the GPL (>=v2) |
# This program is free software under the GPL (>=v2) |
6 |
# Read the file COPYING coming with Thuban for details. |
# Read the file COPYING coming with Thuban for details. |
14 |
""" |
""" |
15 |
|
|
16 |
__version__ = '$Revision$' |
__version__ = '$Revision$' |
17 |
|
# $Source$ |
18 |
|
# $Id$ |
19 |
|
|
20 |
import os, sys |
import os, sys |
21 |
import string |
import string |
238 |
sensitive = _has_selected_shape_layer)) |
sensitive = _has_selected_shape_layer)) |
239 |
|
|
240 |
# find the extensions menu (create it anew if not found) |
# find the extensions menu (create it anew if not found) |
241 |
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')) |
|
242 |
|
|
243 |
# finally add the new entry to the extensions menu |
# finally add the new entry to the extensions menu |
244 |
extensions_menu.InsertItem('bboxdump') |
extensions_menu.InsertItem('bboxdump') |