CadPluginRibbonButtonEntry
from OpenCAD2D.Plugins import CadPluginRibbonButtonEntry
class CadPluginRibbonButtonEntry(System.Object) ยท CadPluginRibbonButtonEntry in the .NET reference
One button of a panel of the "ribbon" of a plugin.json: { "text": "Ring", "command": "RING", "icon": "ring.png", "size": "large", "tooltip": "Draws a ring" }. A button starts a command and does nothing else.
Properties and fields
Command
@property
def Command(self) -> str
Gets the command the button starts.
Icon
@property
def Icon(self) -> str | None
Gets the path of the button's icon, relative to the manifest; null where none is declared.
IsLarge
@property
def IsLarge(self) -> bool
Gets whether the button is drawn large ("size": "large", the icon 32 pixels over the text); false for the standard size.
Text
@property
def Text(self) -> str
Gets the text of the button.
ToolTip
@property
def ToolTip(self) -> str | None
Gets the tooltip of the button; null where none is declared.