draftguitools.gui_togglemodes.ToggleDisplayMode Class Reference
Public Member Functions | |
def | Activated (self) |
def | GetResources (self) |
Public Member Functions inherited from draftguitools.gui_base.GuiCommandNeedsSelection | |
def | IsActive (self) |
Additional Inherited Members | |
Public Attributes inherited from draftguitools.gui_base.GuiCommandSimplest | |
command_name | |
doc | |
Detailed Description
GuiCommand for the Draft_ToggleDisplayMode tool. Switches the display mode of selected objects from flatlines to wireframe and back. It inherits `GuiCommandNeedsSelection` to only be available when there is a document and a selection. See this class for more information.
Member Function Documentation
◆ Activated()
def draftguitools.gui_togglemodes.ToggleDisplayMode.Activated | ( | self | ) |
Execute when the command is called. It tests the view provider of the selected objects and changes their `DisplayMode` from `'Wireframe'` to `'Flat Lines'`, and the other way around, if possible.
Reimplemented from draftguitools.gui_base.GuiCommandSimplest.
◆ GetResources()
def draftguitools.gui_togglemodes.ToggleDisplayMode.GetResources | ( | self | ) |
Set icon, menu and tooltip.
The documentation for this class was generated from the following file:
- src/Mod/Draft/draftguitools/gui_togglemodes.py