Files
create/src/Tools/_TEMPLATEPY_/_TEMPLATEPY_Gui.py
2016-10-04 19:29:53 +02:00

17 lines
477 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())