+class PullDownMenu:
+ ID_NEW_PANEL = wxNewId()
+ ID_NEW_DIALOG = wxNewId()
+ ID_NEW_FRAME = wxNewId()
+ ID_NEW_TOOL_BAR = wxNewId()
+ ID_NEW_TOOL = wxNewId()
+ ID_NEW_MENU_BAR = wxNewId()
+ ID_NEW_MENU = wxNewId()
+
+ ID_NEW_STATIC_TEXT = wxNewId()
+ ID_NEW_TEXT_CTRL = wxNewId()
+
+ ID_NEW_BUTTON = wxNewId()
+ ID_NEW_BITMAP_BUTTON = wxNewId()
+ ID_NEW_RADIO_BUTTON = wxNewId()
+ ID_NEW_SPIN_BUTTON = wxNewId()
+
+ ID_NEW_STATIC_BOX = wxNewId()
+ ID_NEW_CHECK_BOX = wxNewId()
+ ID_NEW_RADIO_BOX = wxNewId()
+ ID_NEW_COMBO_BOX = wxNewId()
+ ID_NEW_LIST_BOX = wxNewId()
+
+ ID_NEW_STATIC_LINE = wxNewId()
+ ID_NEW_STATIC_BITMAP = wxNewId()
+ ID_NEW_CHOICE = wxNewId()
+ ID_NEW_SLIDER = wxNewId()
+ ID_NEW_GAUGE = wxNewId()
+ ID_NEW_SCROLL_BAR = wxNewId()
+ ID_NEW_TREE_CTRL = wxNewId()
+ ID_NEW_LIST_CTRL = wxNewId()
+ ID_NEW_CHECK_LIST = wxNewId()
+ ID_NEW_NOTEBOOK = wxNewId()
+ ID_NEW_HTML_WINDOW = wxNewId()
+ ID_NEW_CALENDAR = wxNewId()
+
+ ID_NEW_BOX_SIZER = wxNewId()
+ ID_NEW_STATIC_BOX_SIZER = wxNewId()
+ ID_NEW_GRID_SIZER = wxNewId()
+ ID_NEW_FLEX_GRID_SIZER = wxNewId()
+ ID_NEW_SPACER = wxNewId()
+ ID_NEW_TOOL_BAR = wxNewId()
+ ID_NEW_TOOL = wxNewId()
+ ID_NEW_MENU = wxNewId()
+ ID_NEW_MENU_ITEM = wxNewId()
+ ID_NEW_SEPARATOR = wxNewId()
+ ID_NEW_LAST = wxNewId()
+ ID_EXPAND = wxNewId()
+
+ def __init__(self, parent):
+ self.ID_DELETE = parent.ID_DELETE
+ EVT_MENU_RANGE(parent, self.ID_NEW_PANEL,
+ self.ID_NEW_LAST, parent.OnCreate)
+ EVT_MENU(parent, self.ID_EXPAND, parent.OnExpand)
+ # We connect to tree, but process in frame
+ EVT_MENU_HIGHLIGHT_ALL(tree, parent.OnPullDownHighlight)
+
+################################################################################
+