Table Of Contents

Previous topic

EdFormatEOLDlg

Next topic

EdMenu

This Page

phoenix_title ed_menu

Package: Editra.src.ed_menu

Provides an advanced menu class for easily creating menus and setting their related bitmaps when available from Editra’s ArtProvider. The Keybinder class for managing keybindings and profiles is also provided by this module.


class_hierarchy Inheritance Diagram

Inheritance diagram for module ed_menu

Inheritance diagram of ed_menu


function_summary Functions Summary

IterateMenuItems Recursively walk and yield menu items as the are found. Only menu
WalkAndSetBitmaps Recursively walk a menu and its submenus setting bitmaps
WalkMenu Recursively walk a menu and collect all its sub items

class_summary Classes Summary

EdMenu Custom wxMenu class that makes it easier to customize and access items.
EdMenuBar Custom menubar to allow for easier access and updating
KeyBinder Class for managing keybinding configurations

Functions



IterateMenuItems(menu)

Recursively walk and yield menu items as the are found. Only menu items are yielded, not submenus or separators.

Parameters:menu – menu to iterate


WalkAndSetBitmaps(menu)

Recursively walk a menu and its submenus setting bitmaps as necessary/available, using the the current theme.



WalkMenu(menu, label, collection)

Recursively walk a menu and collect all its sub items

Parameters:
  • menu – wxMenu to walk
  • label – the menu’s label
  • collection – dictionary to collect results in
Returns:

dict {menulabel : [menu id, (item1 id, label1),]}