diplomat.wx_gui.fpe_editor.Tool¶
- class diplomat.wx_gui.fpe_editor.Tool(name: str, icon: bytes, icon_size: Tuple[int, int], help: str, on_click: Callable[[], NoneType], widget: wx.Window | None = None, shortcut_code: tuple = (), toolbar_obj: wx.ToolBarToolBase | None = None, tool_type: wx.ItemKind = wx.ITEM_NORMAL)[source]¶
Bases:
object- __init__(name: str, icon: bytes, icon_size: Tuple[int, int], help: str, on_click: Callable[[], None], widget: wx.Window | None = None, shortcut_code: tuple = (), toolbar_obj: wx.ToolBarToolBase | None = None, tool_type: wx.ItemKind = wx.ITEM_NORMAL) None¶
Methods
__init__(name, icon, icon_size, help, on_click)get_bitmap(foreground_color[, img_size])Attributes
shortcut_codetool_typetoolbar_objwidgetnameiconicon_sizehelpon_click