TechDraw: Add command tool label for vertex group (#22118)
Co-authored-by: Ryan Kembrey <ryan.kembrey@student.uts>
This commit is contained in:
@@ -54,7 +54,13 @@ class CommandVertexCreationGroup:
|
||||
return 0
|
||||
|
||||
def GetResources(self):
|
||||
return {'Pixmap':'TechDraw_ExtensionVertexAtIntersection'}
|
||||
"""Return a dictionary with data that will be used by the button or menu item."""
|
||||
return {'Pixmap': 'TechDraw_ExtensionVertexAtIntersection.svg',
|
||||
'Accel': "",
|
||||
'MenuText': QT_TRANSLATE_NOOP("TechDraw_ExtensionVertexAtIntersection","Add Cosmetic Intersection Vertex(es)"),
|
||||
'ToolTip': QT_TRANSLATE_NOOP("TechDraw_ExtensionVertexAtIntersection", "Add cosmetic vertex(es) at the intersection(s) of selected edges:<br>\
|
||||
- Select two edges<br>\
|
||||
- Click this tool")}
|
||||
|
||||
def IsActive(self):
|
||||
"""Return True when the command should be active or False when it should be disabled (greyed)."""
|
||||
|
||||
Reference in New Issue
Block a user