|
Scribus
Open source desktop publishing at your fingertips
|


Public Member Functions | |
| def | __init__ |
| def | createMenu (self, title) |
| def | iter_menus (self) |
| def | iter_inner_menus (self, menu) |
| def | findMenu (self, title) |
| def | actionForMenu (self, menu) |
| def | insertMenuBefore (self, before_menu, new_menu) |
| def | menuAfter (self, menu) |
| def | appendMenu (self, menu) |
| def | insertMenuAfter (self, after_menu, new_menu) |
| def | appendItem (self, menu, item, extra_args) |
| def | appendSeparator (self, menu) |
Public Attributes | |
| window | |
| menubar | |
| menus | |
This class lets extension-scripts hook into the main menu of Scribus.
| def scripter_hooks.MenuHooks.appendMenu | ( | self, | |
| menu | |||
| ) |
Probably not that usefull because it will add a menu after the help menu
| def scripter_hooks.MenuHooks.findMenu | ( | self, | |
| title | |||
| ) |
find a menu with a given title @type title: string @param title: English title of the menu @rtype: QMenu @return: None if no menu was found, else the menu with title
| def scripter_hooks.MenuHooks.insertMenuAfter | ( | self, | |
| after_menu, | |||
| new_menu | |||
| ) |
Insert a menu before another menu in the menubar
| def scripter_hooks.MenuHooks.insertMenuBefore | ( | self, | |
| before_menu, | |||
| new_menu | |||
| ) |
Insert a menu after another menu in the menubar @type: before_menu QMenu instance or title string of menu @param before_menu: menu which should be after the newly inserted menu @rtype: QAction instance @return: action for inserted menu