def Test(): import time import pyGuiWrapper as gui global model model = Model() model.load("testModel.xml") gui.go(lambda parent,menu,tool,status,m=model: Panel(parent,menu,tool,status, m))
def Test(): global StandaloneDev import time import pyGuiWrapper as gui mdl = Model() mdl.load("testModel.xml") #sgt = mdl.entityTypes["ServiceGroup"] #sg = mdl.entities["MyServiceGroup"] = Entity(sgt,(0,0),(100,20)) StandaloneDev = True gui.go(lambda parent,menu,tool,status,m=mdl: Panel(parent,common.GuiPlaces(parent,menu,tool,status,None,None), m))
def Test(): global StandaloneDev import time import pyGuiWrapper as gui mdl = Model() mdl.load("testModel.xml") #sgt = mdl.entityTypes["ServiceGroup"] #sg = mdl.entities["MyServiceGroup"] = Entity(sgt,(0,0),(100,20)) StandaloneDev = True gui.go(lambda parent, menu, tool, status, m=mdl: Panel( parent, common.GuiPlaces(parent, menu, tool, status, None, None), m))
def GuiTest(): global theModel theModel = Test() import pyGuiWrapper as gui gui.go(lambda x,y=TestRender: gui.Panel(x,y))
if share.instancePanel: share.instancePanel.deleteEntityTool(ents) if share.detailsPanel: share.detailsPanel.deleteTreeItemEntities(ents) self.model.delete(ents) self.Refresh() def refresh(self): print 'refresh window' self.Refresh() model = None def Test(): import time import pyGuiWrapper as gui global model model = Model() try: model.load("testModel.xml") except IOError, e: if e.errno != 2: # no such file raise gui.go(lambda parent,menu,tool,status,m=model: Panel(parent,menu,tool,status, m)) #gui.start(lambda parent,menu,tool,status,m=model: Panel(parent,menu,tool,status, m)) return model # Notes # test automation panel.WarpPointer(self,x,y) "Move pointer"
def Test(): import time import pyGuiWrapper as gui gui.go(lambda parent, menu, tool, status, y=TestRender: gui.Panel( parent, menu, tool, status, y))