FreeCAD/src/Mod/TemplatePyMod/InitGui.py
2011-10-10 13:44:52 +00:00

51 lines
1.4 KiB
Python

# TemplatePyMod gui init module
# (c) 2007 Juergen Riegel LGPL
#
class TemplatePyModWorkbench ( Workbench ):
"Test workbench object"
Icon = """
/* XPM */
static const char *test_icon[]={
"16 16 2 1",
"a c #000000",
". c None",
"................",
"................",
"..############..",
"..############..",
"..############..",
"......####......",
"......####......",
"......####......",
"......####......",
"......####......",
"......####......",
"......####......",
"......####......",
"......####......",
"................",
"................"};
"""
MenuText = "Python sandbox"
ToolTip = "Python template workbench"
def Initialize(self):
import Commands
self.appendToolbar("TemplateTools",["TemplatePyMod_Cmd1","TemplatePyMod_Cmd2","TemplatePyMod_Cmd3","TemplatePyMod_Cmd4","TemplatePyMod_Cmd5"])
menu = ["ModulePy &Commands","PyModuleCommands"]
list = ["TemplatePyMod_Cmd1","TemplatePyMod_Cmd2","TemplatePyMod_Cmd3","TemplatePyMod_Cmd5","TemplatePyMod_Cmd6"]
self.appendCommandbar("PyModuleCommands",list)
self.appendMenu(menu,list)
Log ('Loading TemplatePyMod module... done\n')
def Activated(self):
Msg("TemplatePyModWorkbench::Activated()\n")
def Deactivated(self):
Msg("TemplatePyModWorkbench::Deactivated()\n")
Gui.addWorkbench(TemplatePyModWorkbench)