Exemplo n.º 1
0
 def Activated(self):
     i = 0
     while (i < 20):
         FreeCADGui.ActivateWorkbench("Import")
         FreeCADGui.UpdateGui()
         FreeCADGui.ActivateWorkbench("<none>")
         FreeCADGui.UpdateGui()
         FreeCADGui.ActivateWorkbench("Part design")
         FreeCADGui.UpdateGui()
         FreeCADGui.ActivateWorkbench("Sketcher")
         FreeCADGui.UpdateGui()
         print i
         i = i + 1
Exemplo n.º 2
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.º 3
0
 def setUp(self):
     FreeCAD.PrintLog ('Remove Test menu...\n')
     w = FreeCADGui.GetWorkbench('Test framework')
     w.RemoveMenu("TestMenu")
     w.Activate()
     FreeCADGui.UpdateGui()