Machining_Distortion/InitGui.py
Go to the documentation of this file.00001
00002
00003
00004 class MachiningDistortionWorkbench ( Workbench ):
00005 "Test workbench object"
00006 Icon = """
00007 /* XPM */
00008 static const char *test_icon[]={
00009 "16 16 2 1",
00010 "a c #000000",
00011 ". c None",
00012 "................",
00013 "................",
00014 "..####....####..",
00015 "..####....####..",
00016 "..####....####..",
00017 "................",
00018 "......####......",
00019 "......####......",
00020 "......####......",
00021 "......####......",
00022 "......####......",
00023 "..####....####..",
00024 "..####....####..",
00025 "..####....####..",
00026 "................",
00027 "................"};
00028 """
00029 MenuText = "Machining Distortion"
00030 ToolTip = "MachiningDistortion workbench"
00031
00032 def Initialize(self):
00033 import MachiningDistortionCommands
00034 import machdist_rc
00035 CmdList = ["MachiningDistortion_StartGUI","MachiningDistortion_StartPostprocess"]
00036 self.appendToolbar("MachiningDistortionTools",CmdList)
00037 self.appendMenu("Machining Distortion",CmdList)
00038 Gui.addPreferencePage(":/ui/userprefs-base.ui","Machining Distortion")
00039
00040
00041 Log ('Loading MachiningDistortion module... done\n')
00042 def Activated(self):
00043 Msg("MachiningDistortionWorkbench::Activated()\n")
00044 def Deactivated(self):
00045 Msg("MachiningDistortionWorkbench::Deactivated()\n")
00046
00047 Gui.addWorkbench(MachiningDistortionWorkbench)