From dc7365ae08210f43ff4e36ba58f5e8025698fe7e Mon Sep 17 00:00:00 2001 From: Ryan K <114723629+ryankembrey@users.noreply.github.com> Date: Tue, 24 Jun 2025 02:26:40 +1000 Subject: [PATCH] TechDraw: Add command tool label for vertex group (#22118) Co-authored-by: Ryan Kembrey --- src/Mod/TechDraw/TechDrawTools/CommandVertexCreations.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/Mod/TechDraw/TechDrawTools/CommandVertexCreations.py b/src/Mod/TechDraw/TechDrawTools/CommandVertexCreations.py index b6f113e922..b66aa1fecf 100644 --- a/src/Mod/TechDraw/TechDrawTools/CommandVertexCreations.py +++ b/src/Mod/TechDraw/TechDrawTools/CommandVertexCreations.py @@ -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:
\ + - Select two edges
\ + - Click this tool")} def IsActive(self): """Return True when the command should be active or False when it should be disabled (greyed)."""