Package schrodinger :: Package ui :: Package widget :: Module pmwwidget :: Class MainMenuBar
[hide private]
[frames] | no frames]

Class MainMenuBar

                              schroPmwWrapper --+
                                                |
 _Pmw.Pmw_1_3_3.lib.PmwBase.MegaArchetype --+   |
                                            |   |
_Pmw.Pmw_1_3_3.lib.PmwMainMenuBar.MainMenuBar --+
                                                |
                                               MainMenuBar

Class that mimics the Pmw.MainMenuBar class.

Instance Methods [hide private]
 
__init__(self, parent, **kw)
Method which sets the proper initialization function, initializes the mega-wiget, and then "cleans up" each component, setting its options to the defaults.
 
addmenu(self, menuName, balloonHelp, statusHelp=None, traverseSpec=None, **kw)
We catch the "addmenu" method of the Pmw.MainMenuBar class so that we can make adjustments to each one as it is created.
 
addcascademenu(self, parentMenuName, menuName, statusHelp='', traverseSpec=None, **kw)
We catch the "addcascademenu" method of the Pmw.MainMenuBar class so that we can make adjustments to each one as it is created.
 
addmenuitem(self, menuName, itemType, statusHelp='', traverseSpec=None, **kw)
We catch the "addmenuitem" method of the Pmw.MainMenuBar class so that we can make adjustments to each one as it is created.

Inherited from schroPmwWrapper: cleanup_components, grid, pack

Inherited from _Pmw.Pmw_1_3_3.lib.PmwMainMenuBar.MainMenuBar: activate, add, add_cascade, add_checkbutton, add_command, add_radiobutton, add_separator, after, after_cancel, after_idle, bbox, bell, bind, bind_all, bind_class, bindtags, clipboard_append, clipboard_clear, clipboard_get, colormodel, columnconfigure, config, delete, deletecommand, deletemenu, deletemenuitems, disableall, enableall, entrycget, entryconfig, entryconfigure, event_add, event_delete, event_generate, event_info, focus, focus_displayof, focus_force, focus_get, focus_lastfor, focus_set, forget, getboolean, getvar, grab_current, grab_release, grab_set, grab_set_global, grab_status, grid_bbox, grid_columnconfigure, grid_configure, grid_forget, grid_info, grid_location, grid_propagate, grid_remove, grid_rowconfigure, grid_size, grid_slaves, image_names, image_types, index, info, insert, insert_cascade, insert_checkbutton, insert_command, insert_radiobutton, insert_separator, invoke, keys, lift, lower, mainloop, nametowidget, option_add, option_clear, option_get, option_readfile, pack_configure, pack_forget, pack_info, pack_propagate, pack_slaves, place, place_configure, place_forget, place_info, place_slaves, post, propagate, quit, register, rowconfigure, selection_clear, selection_get, selection_handle, selection_own, selection_own_get, send, setvar, size, slaves, tk_bindForTraversal, tk_bisque, tk_firstMenu, tk_focusFollowsMouse, tk_focusNext, tk_focusPrev, tk_getMenuButtons, tk_invokeMenu, tk_mbButtonDown, tk_mbPost, tk_mbUnpost, tk_menuBar, tk_nextMenu, tk_nextMenuEntry, tk_popup, tk_setPalette, tk_strictMotif, tk_traverseToMenu, tk_traverseWithinMenu, tkraise, type, unbind, unbind_all, unbind_class, unpost, update, update_idletasks, wait_variable, wait_visibility, wait_window, waitvar, winfo_atom, winfo_atomname, winfo_cells, winfo_children, winfo_class, winfo_colormapfull, winfo_containing, winfo_depth, winfo_exists, winfo_fpixels, winfo_geometry, winfo_height, winfo_id, winfo_interps, winfo_ismapped, winfo_manager, winfo_name, winfo_parent, winfo_pathname, winfo_pixels, winfo_pointerx, winfo_pointerxy, winfo_pointery, winfo_reqheight, winfo_reqwidth, winfo_rgb, winfo_rootx, winfo_rooty, winfo_screen, winfo_screencells, winfo_screendepth, winfo_screenheight, winfo_screenmmheight, winfo_screenmmwidth, winfo_screenvisual, winfo_screenwidth, winfo_server, winfo_toplevel, winfo_viewable, winfo_visual, winfo_visualid, winfo_visualsavailable, winfo_vrootheight, winfo_vrootwidth, winfo_vrootx, winfo_vrooty, winfo_width, winfo_x, winfo_y, yposition

Inherited from _Pmw.Pmw_1_3_3.lib.PmwMainMenuBar.MainMenuBar (private): _addHotkeyToOptions, _addmenu, _menuHelp, _resetHelpmessage

Inherited from _Pmw.Pmw_1_3_3.lib.PmwBase.MegaArchetype: __getitem__, __setitem__, __str__, addoptions, cget, component, componentaliases, componentgroup, components, configure, createcomponent, createlabel, defineoptions, destroy, destroycomponent, hulldestroyed, initialiseoptions, interior, isinitoption, options

Method Details [hide private]

__init__(self, parent, **kw)
(Constructor)

 

Method which sets the proper initialization function, initializes the mega-wiget, and then "cleans up" each component, setting its options to the defaults.

Overrides: _Pmw.Pmw_1_3_3.lib.PmwBase.MegaArchetype.__init__

addmenu(self, menuName, balloonHelp, statusHelp=None, traverseSpec=None, **kw)

 

We catch the "addmenu" method of the Pmw.MainMenuBar class so that we can make adjustments to each one as it is created. This method simply creates the menu, and cleans it up by hand.

Overrides: _Pmw.Pmw_1_3_3.lib.PmwMainMenuBar.MainMenuBar.addmenu

addcascademenu(self, parentMenuName, menuName, statusHelp='', traverseSpec=None, **kw)

 

We catch the "addcascademenu" method of the Pmw.MainMenuBar class so that we can make adjustments to each one as it is created. This method simply creates the menu after modifying the options in order to get default behavior.

NOTE: user-specified options will be overwritten, in order to get non-default behavior, the user must customize the widget after initialization (this excludes necessary user-defined options requested for this method, eg. menuName).

Overrides: _Pmw.Pmw_1_3_3.lib.PmwMainMenuBar.MainMenuBar.addcascademenu

addmenuitem(self, menuName, itemType, statusHelp='', traverseSpec=None, **kw)

 

We catch the "addmenuitem" method of the Pmw.MainMenuBar class so that we can make adjustments to each one as it is created. This method simply creates the item after modifying the options in order to get default behavior.

NOTE: user-specified options will be overwritten, in order to get non-default behavior, the user must customize the widget after initialization (this excludes necessary user-defined options requested for this method, eg. menuName).

Overrides: _Pmw.Pmw_1_3_3.lib.PmwMainMenuBar.MainMenuBar.addmenuitem