def start(self, para=None, callafter=None):
		pan = WorkFlowPanel(IPy.curapp)
		pan.load(self.cont, self.workflow)
		info = aui.AuiPaneInfo(). DestroyOnClose(True). Left(). Caption(self.title)  .PinButton( True ) \
			.Resizable().FloatingSize( wx.DefaultSize ).Dockable(IPy.uimode()=='ipy').Layer( 5 ) 
		
		if IPy.uimode()=='ipy': info.Dock().Top()
		if IPy.uimode()=='ij': info.Float()
		IPy.curapp.auimgr.AddPane(pan, info)
		IPy.curapp.Layout()
		IPy.curapp.auimgr.Update()
Exemple #2
0
	def start(self):
		if not WidgetsManager.getref(self.title) is None: return
		pan = self.pan(IPy.curapp)
		WidgetsManager.addref(pan)
		IPy.curapp.auimgr.AddPane(pan, wx.aui.AuiPaneInfo(). DestroyOnClose(True). Left(). Caption(self.title)  .PinButton( True )
			.Float().Resizable().FloatingSize( wx.DefaultSize ).Dockable(IPy.uimode()=='ipy').Layer( 15 ) )
		IPy.curapp.Layout()
		IPy.curapp.auimgr.Update()
		'''
Exemple #3
0
 def zoom(self, k, x, y):
     # print 'scale', k
     k1 = self.oldscale * 1.0
     self.oldscale = k2 = k
     self.imgbox[0] = int(self.imgbox[0] + (k1-k2)*x+0.5)
     self.imgbox[1] = int(self.imgbox[1] + (k1-k2)*y+0.5)
     self.imgbox[2] = int(self.ips.size[1] * k2+0.5)
     self.imgbox[3] = int(self.ips.size[0] * k2+0.5)
     lay(self.box, self.imgbox)
     if self.imgbox[2]<=self.scrsize[0]*0.9 and\
     self.imgbox[3]<=self.scrsize[1]*0.9 and IPy.uimode()=='ij':
         self.SetInitialSize((self.imgbox[2], self.imgbox[3]))
         if not self.handle is None: self.handle(self.ips, True)
Exemple #4
0
	def run(self, para = None):
		if IPy.uimode() != 'ipy': return
		app = IPy.curapp
		info = app.auimgr.GetPane(app.tablenb)
		info.Show(not info.IsShown())
		app.auimgr.Update()
Exemple #5
0
 def next(self):
     if IPy.uimode() == 'no':
         self._next(self)
     else:
         wx.CallAfter(pub.sendMessage, 'stepmacros', plg=self)