Files
FreeCADWasmDev/src/Tools/_TEMPLATEPY_/InitGui.py
wangdequan b5a086fda5
Some checks failed
FreeCAD master CI / Prepare (push) Has been cancelled
FreeCAD master CI / Pixi (push) Has been cancelled
FreeCAD master CI / Ubuntu (push) Has been cancelled
FreeCAD master CI / Windows (push) Has been cancelled
FreeCAD master CI / Lint (push) Has been cancelled
FreeCAD master CI / WrapUp (push) Has been cancelled
CodeQL Advanced / Analyze (actions) (push) Has been cancelled
CodeQL Advanced / Analyze (python) (push) Has been cancelled
Scorecard supply-chain security / Scorecard analysis (push) Has been cancelled
Stale Issues / stale (push) Has been cancelled
FreeCAD WebAssembly development snapshot
2026-08-20 07:00:53 +08:00

27 lines
702 B
Python

# SPDX-License-Identifier: LGPL-2.1-or-later
# _TEMPLATEPY_ gui init module
# (c) 2001 Juergen Riegel
# License LGPL
class _TEMPLATEPY_Workbench(Workbench):
"_TEMPLATEPY_ workbench object"
Icon = FreeCAD.getResourceDir() + "Mod/_TEMPLATEPY_/Resources/icons/_TEMPLATEPY_Workbench.svg"
MenuText = "_TEMPLATEPY_"
ToolTip = "_TEMPLATEPY_ workbench"
def Initialize(self):
# load the module
import _TEMPLATEPY_Gui
self.appendToolbar("_TEMPLATEPY_", ["_TEMPLATEPY__HelloWorld"])
self.appendMenu("_TEMPLATEPY_", ["_TEMPLATEPY__HelloWorld"])
def GetClassName(self):
return "Gui::PythonWorkbench"
Gui.addWorkbench(_TEMPLATEPY_Workbench())