Exemplo n.º 1
0
 def setUp(self):
     FreeCAD.PrintLog ('Setup Test menu...\n')
     list = ["Test_TestAll","Test_TestDoc","Test_TestBase","Test_TestWork"]
     w = FreeCADGui.GetWorkbench('Test framework')
     w.AppendMenu("TestMenu",list)
     w.Activate()
     FreeCADGui.UpdateGui()
Exemplo n.º 2
0
 def testMenu(self):
     # check menu for items
     FreeCAD.PrintLog ('Checking Test menu...\n')
     w = FreeCADGui.GetWorkbench('Test framework')
     list = w.ListMenus()
     self.b = True
     for i in list:
       if i == 'TestMenu': self.b=False
     self.failUnless(self.b==True,"Test menu still added")
Exemplo n.º 3
0
 def setUp(self):
     FreeCAD.PrintLog ('Remove Test menu...\n')
     w = FreeCADGui.GetWorkbench('Test framework')
     w.RemoveMenu("TestMenu")
     w.Activate()
     FreeCADGui.UpdateGui()