Changeset 174
- Timestamp:
- 04/13/04 14:26:19 (5 years ago)
- Files:
-
- trunk/ui/uiwx/classes/dForm.py (modified) (1 diff)
- trunk/ui/uiwx/classes/dFormMixin.py (modified) (4 diffs)
- trunk/ui/uiwx/classes/dProgressDialog.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/ui/uiwx/classes/dForm.py
r172 r174 27 27 else: 28 28 style = wx.DEFAULT_FRAME_STYLE 29 wxFrameClass.__init__(self, parent, -1, "", (-1,-1), (-1,-1),style)29 wxFrameClass.__init__(self, parent, -1, "", style=style) 30 30 31 31 self.Name = name trunk/ui/uiwx/classes/dFormMixin.py
r172 r174 3 3 import dPemMixin as pm 4 4 import dMainMenuBar as mnb 5 import dMenu 5 import dMenu, dMessageBox 6 6 7 7 class dFormMixin(pm.dPemMixin): … … 17 17 self.dApp.uiForms.add(self) 18 18 19 self.restoredSP = False 19 self.restoredSP = False 20 20 21 21 if self.dApp: … … 25 25 26 26 def OnActivate(self, event): 27 if event.GetActive() == 1and self.restoredSP == False:27 if bool(event.GetActive()) == True and self.restoredSP == False: 28 28 # Restore the saved size and position, which can't happen 29 29 # in __init__ because we may not have our name yet. 30 self.restoredSP = True 30 31 self.restoreSizeAndPosition() 31 self.restoredSP = True32 32 event.Skip() 33 33 … … 74 74 and set those properties on this form. 75 75 ''' 76 dMessageBox.stop("restore: %s, %s" % (self.GetName(), self.dApp)) 76 77 if self.dApp: 77 78 name = self.GetName() trunk/ui/uiwx/classes/dProgressDialog.py
r144 r174 70 70 class dProgressDialog(wx.Dialog): 71 71 def __init__(self, parent, caption="Progress Dialog", func=None, wait=0): 72 wx.Dialog.__init__(self,parent,-1,caption ,style=0)72 wx.Dialog.__init__(self,parent,-1,caption) 73 73 74 74 self.Centre(wx.BOTH) 75 75 self.SetSize((300,100)) 76 76 77 self.status = wx.StaticText(self,-1,' ',pos=(0,100))77 self.status = wx.StaticText(self,-1,'Please Wait...',pos=(0,100)) 78 78 79 79 wx.EVT_CLOSE(self, self.OnClose) … … 90 90 def start(self, func): 91 91 if func: 92 self.status.SetLabel('Please Wait...')93 92 self.worker = WorkerThread(self, func) 94 93 else:
