diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2016-05-22 20:57:09 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2016-05-22 20:57:09 +0200 |
commit | 2f8be93a2b0bfe4a5fe1607a224ec4b61bf87790 (patch) | |
tree | e77f2e7cee7c28ac68801a211629a8db6c7f2265 /InitGui.py | |
download | freecad-boxer-2f8be93a2b0bfe4a5fe1607a224ec4b61bf87790.tar.gz freecad-boxer-2f8be93a2b0bfe4a5fe1607a224ec4b61bf87790.tar.bz2 freecad-boxer-2f8be93a2b0bfe4a5fe1607a224ec4b61bf87790.tar.xz freecad-boxer-2f8be93a2b0bfe4a5fe1607a224ec4b61bf87790.zip |
o Initial import.
Diffstat (limited to 'InitGui.py')
-rw-r--r-- | InitGui.py | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/InitGui.py b/InitGui.py new file mode 100644 index 0000000..3ca7ce4 --- /dev/null +++ b/InitGui.py @@ -0,0 +1,27 @@ +print "GUI: Caser loaded" + +class BoxerWorkbench (Workbench): + + MenuText = "Boxer" + ToolTip = "Box Maker" +# Icon = + + def Initialize(self): + import Boxer + self.list = ["BoxerMakeBox", "BoxerRemoveBox"] + self.appendToolbar("Boxer Commands", self.list) + + def Activated(self): + return + + def Deactivated(self): + return + + def ContextMenu(self, recipient): + # "recipient" will be either "view" or "tree" + self.appendContextMenu("Boxer", self.list) + + def GetClassName(self): + return "Gui::PythonWorkbench" + +Gui.addWorkbench(BoxerWorkbench()) |