Changeset 369 for trunk/GSASII.py


Ignore:
Timestamp:
Sep 10, 2011 9:52:32 AM (11 years ago)
Author:
vondreele
Message:

remove wx from GSASIIstruct.py

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASII.py

    r368 r369  
    13731373        self.OnFileSave(event)
    13741374        #works - but it'd be better if it could restore plots
    1375         G2str.Refine(self.GSASprojectfile)
     1375        dlg = wx.ProgressDialog('Residual','Powder profile Rwp =',101.0,
     1376            style = wx.PD_ELAPSED_TIME|wx.PD_AUTO_HIDE|wx.PD_REMAINING_TIME|wx.PD_CAN_ABORT)
     1377        screenSize = wx.ClientDisplayRect()
     1378        Size = dlg.GetSize()
     1379        dlg.SetPosition(wx.Point(screenSize[2]-Size[0]-305,screenSize[1]+5))
     1380        try:
     1381            G2str.Refine(self.GSASprojectfile,dlg)
     1382        finally:
     1383            dlg.Destroy()       
    13761384        dlg = wx.MessageDialog(self,'Load new result?','Refinement results',wx.OK|wx.CANCEL)
    13771385        try:
Note: See TracChangeset for help on using the changeset viewer.