draftguitools.gui_base.GuiCommandNeedsSelection Class Reference
Public Member Functions | |
def | IsActive (self) |
Public Member Functions inherited from draftguitools.gui_base.GuiCommandSimplest | |
def | Activated (self) |
Additional Inherited Members | |
Public Attributes inherited from draftguitools.gui_base.GuiCommandSimplest | |
command_name | |
doc | |
Detailed Description
Base class for GuiCommands that need a selection to be available. It re-implements the `IsActive` method to return `True` when there is both an active document and an active selection. It inherits `GuiCommandSimplest` to set up the document and other behavior. See this class for more information.
Member Function Documentation
◆ IsActive()
def draftguitools.gui_base.GuiCommandNeedsSelection.IsActive | ( | self | ) |
Return True when this command should be available. It is `True` when there is a selection.
Reimplemented from draftguitools.gui_base.GuiCommandSimplest.
The documentation for this class was generated from the following file:
- src/Mod/Draft/draftguitools/gui_base.py