Package reflectometry :: Package reduction :: Module cmapmenu :: Class CMapMenu

Class CMapMenu

source code


Menu tree binding to a list of colormaps.
Instance Methods
EvtHandler
__init__(self, window, mapper=None, canvas=None, callback=None)
Define a context menu for selecting colormaps.
source code

Inherited from wx._core.Menu: Append, AppendCheckItem, AppendItem, AppendMenu, AppendRadioItem, AppendSeparator, AppendSubMenu, Attach, Break, Check, Delete, DeleteItem, Destroy, DestroyId, DestroyItem, Detach, Enable, FindItem, FindItemById, FindItemByPosition, GetEventHandler, GetHelpString, GetInvokingWindow, GetLabel, GetLabelText, GetMenuBar, GetMenuItemCount, GetMenuItems, GetParent, GetStyle, GetTitle, Insert, InsertCheckItem, InsertItem, InsertMenu, InsertRadioItem, InsertSeparator, IsAttached, IsChecked, IsEnabled, Prepend, PrependCheckItem, PrependItem, PrependMenu, PrependRadioItem, PrependSeparator, Remove, RemoveItem, SetEventHandler, SetHelpString, SetInvokingWindow, SetLabel, SetParent, SetTitle, UpdateUI

Inherited from wx._core.EvtHandler: AddPendingEvent, Bind, Connect, Disconnect, GetEvtHandlerEnabled, GetNextHandler, GetPreviousHandler, ProcessEvent, ProcessPendingEvents, SetEvtHandlerEnabled, SetNextHandler, SetPreviousHandler, Unbind

Inherited from wx._core.Object: GetClassName, IsSameAs, __repr__

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __str__

Properties

Inherited from wx._core.Menu: EventHandler, HelpString, InvokingWindow, MenuBar, MenuItemCount, MenuItems, Parent, Style, Title, thisown

Inherited from wx._core.EvtHandler: EvtHandlerEnabled, NextHandler, PreviousHandler

Inherited from wx._core.Object: ClassName

Inherited from object: __class__

Method Details

__init__(self, window, mapper=None, canvas=None, callback=None)
(Constructor)

source code 

Define a context menu for selecting colormaps.

Need a window to use as the event handler. If mapper is defined, it will be updated with the new colormap. If canvas is defined, it will update on idle.

Returns: EvtHandler
Overrides: object.__init__