Changeset 440 for trunk/GSASIIphsGUI.py


Ignore:
Timestamp:
Dec 11, 2011 1:55:19 PM (11 years ago)
Author:
vondreele
Message:

fix the mustrain ve microstrain title problem = GSASII.py
take wx,CallAfter? back out of most places - caused problems
get aniso size/mustrain ellipsoid around the right way to match ellipsoid model - exchanged sin & cos.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIphsGUI.py

    r439 r440  
    214214                generalData['Type'] = TypeTxt.GetValue()
    215215                dataDisplay.DestroyChildren()           #needed to clear away bad cellSizer, etc.
    216 #                wx.CallAfter(UpdateGeneral)        doesn't work here
    217216                UpdateGeneral()         #must use this way!
    218217                if generalData['Type'] == 'Pawley':
     
    245244            wx.MessageBox(Text,caption=msg,style=Style)
    246245            dataDisplay.DestroyChildren()           #needed to clear away bad cellSizer, etc.
    247             wx.CallAfter(UpdateGeneral)
     246            UpdateGeneral()
    248247           
    249248        def OnCellRef(event):
     
    323322            generalData['Cell'] = cell
    324323            dataDisplay.DestroyChildren()           #needed to clear away bad cellSizer, etc.
    325             wx.CallAfter(UpdateGeneral)
     324            UpdateGeneral()
    326325                       
    327326        def OnPawleyVal(event):
     
    341340            indx = generalData['AtomTypes'].index(item)
    342341            data['General']['AtomMass'][indx] = generalData['Isotopes'][item][isotope][0]
    343             wx.CallAfter(UpdateGeneral)
     342            UpdateGeneral()
    344343                                               
    345344        cellGUIlist = [[['m3','m3m'],4,zip([" Unit cell: a = "," Vol = "],["%.5f","%.3f"],[True,False],[0,0])],
     
    11571156                            drawingData['Atoms'][r][c] = color
    11581157                            drawAtoms.SetAttr(r,c,attr)
    1159                         wx.CallAfter(UpdateDrawAtoms)
     1158                        UpdateDrawAtoms()
    11601159                    dlg.Destroy()
    11611160                elif drawAtoms.GetColLabelValue(c) == 'Residue':
     
    11951194                    dlg.Destroy()
    11961195                    event.StopPropagation()
    1197                     wx.CallAfter(UpdateDrawAtoms)
     1196                    UpdateDrawAtoms()
    11981197            G2plt.PlotStructure(self,data)
    11991198                   
     
    13461345            atNum = generalData['AtomTypes'].index(atom[ct])
    13471346            atom[cs+2] = list(generalData['Color'][atNum])
    1348         wx.CallAfter(UpdateDrawAtoms)
     1347        UpdateDrawAtoms()
    13491348        drawAtoms.ClearSelection()
    13501349        G2plt.PlotStructure(self,data)       
     
    14501449            finally:
    14511450                dlg.Destroy()
    1452             wx.CallAfter(UpdateDrawAtoms)
     1451            UpdateDrawAtoms()
    14531452            drawAtoms.ClearSelection()
    14541453            G2plt.PlotStructure(self,data)
     
    14931492                                atomData.append(newAtom)
    14941493            data['Drawing']['Atoms'] = atomData
    1495             wx.CallAfter(UpdateDrawAtoms)
     1494            UpdateDrawAtoms()
    14961495            drawAtoms.ClearSelection()
    14971496            G2plt.PlotStructure(self,data)
     
    15461545                                atomData.append(atom[:])               
    15471546                data['Drawing']['Atoms'] = atomData
    1548             wx.CallAfter(UpdateDrawAtoms)
     1547            UpdateDrawAtoms()
    15491548            drawAtoms.ClearSelection()
    15501549            G2plt.PlotStructure(self,data)
     
    16551654            for ind in indx:
    16561655                del atomData[ind]
    1657             wx.CallAfter(UpdateDrawAtoms)
     1656            UpdateDrawAtoms()
    16581657            drawAtoms.ClearSelection()
    16591658            G2plt.PlotStructure(self,data)
     
    16621661    def OnReloadDrawAtoms(event):
    16631662        data['Drawing']['Atoms'] = []
    1664         wx.CallAfter(UpdateDrawAtoms)
     1663        UpdateDrawAtoms()
    16651664        drawAtoms.ClearSelection()
    16661665        G2plt.PlotStructure(self,data)
     
    28552854            wx.EndBusyCursor()
    28562855        data['Pawley ref'] = PawleyPeaks
    2857         wx.CallAfter(FillPawleyReflectionsGrid)
     2856        FillPawleyReflectionsGrid()
    28582857       
    28592858    def OnPawleyEstimate(event):
     
    28902889            except IndexError:
    28912890                pass
    2892         wx.CallAfter(FillPawleyReflectionsGrid)
     2891        FillPawleyReflectionsGrid()
    28932892                           
    28942893    def OnPawleyDelete(event):
     
    29012900        if result == wx.ID_YES:
    29022901            data['Pawley ref'] = []
    2903             wx.CallAfter(FillPawleyReflectionsGrid)
     2902            FillPawleyReflectionsGrid()
    29042903   
    29052904    def OnTextureRefine(event):
Note: See TracChangeset for help on using the changeset viewer.