Files
create/src/Tools/_TEMPLATEPY_/_TEMPLATEPY_Gui.py
2023-04-22 13:07:06 -05:00

25 lines
528 B
Python

# -*- coding: utf-8 -*-
# FreeCAD tools of the _TEMPLATEPY_ workbench
# (c) 2001 Juergen Riegel
# License LGPL
import FreeCAD, FreeCADGui
class CmdHelloWorld:
def Activated(self):
FreeCAD.Console.PrintMessage("Hello, World!\n")
def IsActive(self):
return True
def GetResources(self):
return {
"Pixmap": "freecad",
"MenuText": "Hello World",
"ToolTip": "Print Hello World",
}
FreeCADGui.addCommand("_TEMPLATEPY__HelloWorld", CmdHelloWorld())