Lattice2/InitGui.py
2015-10-17 02:30:25 +03:00

49 lines
1.2 KiB
Python

class LatticeWorkbench (Workbench):
MenuText = 'Lattice'
def Initialize(self):
commandslist=[]
import FuseCompound
commandslist = commandslist + FuseCompound.exportedCommands
import CompoundFilter
commandslist = commandslist + CompoundFilter.exportedCommands
import latticeBoundBox
commandslist = commandslist + latticeBoundBox.exportedCommands
self.appendToolbar('Lattice', commandslist)
self.treecmdList = ['importPart', 'updateImportedPartsCommand']
#FreeCADGui.addIconPath( '' )
#FreeCADGui.addPreferencePage( '','Lattice' )
self.appendMenu('Lattice', commandslist)
def Activated(self):
pass
Icon = """
/* XPM */
static const char *test_icon[]={
"16 16 2 1",
"a c #000000",
". c None",
".....#.....#....",
".....#.....#....",
".....#.....#....",
".....#.....#....",
"################",
".....#.....#....",
".....#.....#....",
".....#.....#....",
".....#.....#....",
"################",
".....#.....#....",
".....#.....#....",
".....#.....#....",
".....#.....#....",
"................",
"................"};
"""
Gui.addWorkbench(LatticeWorkbench())