25 lines
528 B
Python
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())
|