Changeset 1591 for trunk/GSASII.py
- Timestamp:
- Dec 2, 2014 1:30:45 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASII.py
r1578 r1591 3434 3434 #works - but it'd be better if it could restore plots 3435 3435 dlg = wx.ProgressDialog('Residual','All data Rw =',101.0, 3436 style = wx.PD_ELAPSED_TIME|wx.PD_AUTO_HIDE|wx.PD_CAN_ABORT )3437 screenSize = wx.ClientDisplayRect()3436 style = wx.PD_ELAPSED_TIME|wx.PD_AUTO_HIDE|wx.PD_CAN_ABORT, 3437 parent=self) 3438 3438 Size = dlg.GetSize() 3439 Size = (int(Size[0]*1.2),Size[1]) # increase size a bit along x3440 dlg.SetPosition(wx.Point(screenSize[2]-Size[0]-305,screenSize[1]+5))3441 dlg. SetSize(Size)3439 if 50 < Size[0] < 500: # sanity check on size, since this fails w/Win & wx3.0 3440 dlg.SetSize((int(Size[0]*1.2),Size[1])) # increase size a bit along x 3441 dlg.CenterOnParent() 3442 3442 Rw = 100.00 3443 3443 try: 3444 3444 Rw = G2stMn.Refine(self.GSASprojectfile,dlg) 3445 3445 finally: 3446 dlg.Update(101.) # forces the Auto_Hide; needed after move w/Win & wx3.0 3446 3447 dlg.Destroy() 3447 3448 wx.Yield() … … 3507 3508 return 3508 3509 dlg = wx.ProgressDialog('Residual for histogram 0','Powder profile Rwp =',101.0, 3509 style = wx.PD_ELAPSED_TIME|wx.PD_AUTO_HIDE|wx.PD_CAN_ABORT )3510 screenSize = wx.ClientDisplayRect()3510 style = wx.PD_ELAPSED_TIME|wx.PD_AUTO_HIDE|wx.PD_CAN_ABORT, 3511 parent=self) 3511 3512 Size = dlg.GetSize() 3512 Size = (int(Size[0]*1.2),Size[1]) # increase size a bit along x3513 dlg.SetPosition(wx.Point(screenSize[2]-Size[0]-305,screenSize[1]+5))3514 dlg. SetSize(Size)3513 if 50 < Size[0] < 500: # sanity check on size, since this fails w/Win & wx3.0 3514 dlg.SetSize((int(Size[0]*1.2),Size[1])) # increase size a bit along x 3515 dlg.CenterOnParent() 3515 3516 try: 3516 3517 G2stMn.SeqRefine(self.GSASprojectfile,dlg) 3517 3518 finally: 3518 dlg.Destroy() 3519 dlg.Update(101.) # forces the Auto_Hide; needed after move w/Win & wx3.0 3520 dlg.Destroy() 3521 wx.Yield() 3519 3522 dlg = wx.MessageDialog(self,'Load new result?','Refinement results',wx.OK|wx.CANCEL) 3520 3523 try:
Note: See TracChangeset
for help on using the changeset viewer.