Changeset 5028 for trunk


Ignore:
Timestamp:
Sep 17, 2021 1:57:49 PM (3 months ago)
Author:
vondreele
Message:

remove another misused wx.CallAfter? in OnRefine?
small change to one of the LeBail? popups

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIdataGUI.py

    r5026 r5028  
    52435243            dlg2 = wx.MessageDialog(self,text,'Refinement results, Rw =%.3f'%(Rw),wx.OK|wx.CANCEL)
    52445244            dlg2.CenterOnParent()
    5245             #dlg2.Raise()  # crashes sometimes on Mac
    52465245            try:
    52475246                if dlg2.ShowModal() == wx.ID_OK:
    52485247                    if refPlotUpdate: refPlotUpdate({},restore=True)
    5249                     wx.CallAfter(self.reloadFromGPX,rtext)
     5248                    self.reloadFromGPX(rtext)
    52505249                else:
    52515250                    if refPlotUpdate: refPlotUpdate({},restore=True)
     
    53065305            text = ''
    53075306            rtext = 'Le Bail-only fit done. '
    5308             Rwp = Rvals.get('Rwp','?')
     5307            Rwp = Rvals.get('Rwp')
    53095308            if 'GOF' in Rvals:
    5310                 txt = 'Final Reduced Chi^2: {:.3f} (before ref: {})\n'.format(
     5309                txt = 'Final Reduced Chi^2: {:.3f}\n'.format(
    53115310                    Rvals['GOF']**2,rChi2initial)
    53125311                text += txt
    53135312                rtext += txt
    5314             text += '\nLoad new result?'
     5313            text += '\nLoad new result & continue refinement?'
    53155314            dlg2 = wx.MessageDialog(self,text,'Le Bail fit: Rwp={:.3f}'.format(Rwp),wx.OK|wx.CANCEL)
    53165315            dlg2.CenterOnParent()
Note: See TracChangeset for help on using the changeset viewer.