Changeset 1800 for trunk/GSASIIphsGUI.py
- Timestamp:
- Apr 21, 2015 12:16:53 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIphsGUI.py
r1796 r1800 711 711 def OnRefList(event): 712 712 dlg = G2G.G2MultiChoiceDialog(G2frame, 'Select reflection sets to use', 713 'Use data',refsList ,filterBox=False)713 'Use data',refsList) 714 714 try: 715 715 if dlg.ShowModal() == wx.ID_OK: … … 782 782 def OnRefList(event): 783 783 dlg = G2G.G2MultiChoiceDialog(G2frame, 'Select reflection sets to use', 784 'Use data',refsList ,filterBox=False)784 'Use data',refsList) 785 785 try: 786 786 if dlg.ShowModal() == wx.ID_OK: … … 2228 2228 def OnRefList(event): 2229 2229 dlg = G2G.G2MultiChoiceDialog(G2frame, 'Select reflection sets to use', 2230 'Use data',refsList ,filterBox=False)2230 'Use data',refsList) 2231 2231 try: 2232 2232 if dlg.ShowModal() == wx.ID_OK: … … 3752 3752 TextList.append(name) 3753 3753 item, cookie = G2frame.PatternTree.GetNextChild(G2frame.root, cookie) 3754 dlg = wx.MultiChoiceDialog(G2frame, 'Which new data to use?', 'Use data', TextList, wx.CHOICEDLG_STYLE) 3754 dlg = G2G.G2MultiChoiceDialog(G2frame, 'Select reflection sets to use', 3755 'Use data',TextList) 3755 3756 try: 3756 3757 if dlg.ShowModal() == wx.ID_OK: … … 3936 3937 NDij = len(G2spc.HStrainNames(SGData)) 3937 3938 keyList = UseList.keys() 3938 TextList = [ 'All PWDR']3939 TextList = [] 3939 3940 if G2frame.PatternTree.GetCount(): 3940 3941 item, cookie = G2frame.PatternTree.GetFirstChild(G2frame.root) … … 3944 3945 TextList.append(name) 3945 3946 item, cookie = G2frame.PatternTree.GetNextChild(G2frame.root, cookie) 3946 dlg = wx.MultiChoiceDialog(G2frame, 'Which new data to use?', 'Use data', TextList, wx.CHOICEDLG_STYLE) 3947 dlg = G2G.G2MultiChoiceDialog(G2frame, 'Select reflection sets to use', 3948 'Use data',TextList) 3947 3949 try: 3948 3950 if dlg.ShowModal() == wx.ID_OK: … … 5923 5925 else: # xray - typical caked 2D image data 5924 5926 refData[name] = np.column_stack((Refs[0],Refs[1],Refs[2],Refs[5+im],Refs[8+im],Refs[12+im+it],np.zeros_like(Refs[0]))) 5925 Error = G2mth.FitTexture(General,Gangls,refData,keyList) 5927 pgbar = wx.ProgressDialog('Texture fit','Residual = %5.2f'%(101.0),101.0, 5928 style = wx.PD_ELAPSED_TIME|wx.PD_AUTO_HIDE) 5929 Error = G2mth.FitTexture(General,Gangls,refData,keyList,pgbar) 5930 pgbar.Destroy() 5926 5931 if Error: 5927 5932 wx.MessageBox(Error,caption='Fit Texture Error',style=wx.ICON_EXCLAMATION) … … 5977 5982 G2gd.SetDataMenuBar(G2frame,G2frame.dataFrame.DataMenu) 5978 5983 G2ddG.UpdateDData(G2frame,DData,data) 5979 G2plt.PlotSizeStrainPO(G2frame,data,hist='',Start=True)5984 wx.CallAfter(G2plt.PlotSizeStrainPO,G2frame,data,hist='',Start=True) 5980 5985 elif text == 'Atoms': 5981 5986 G2gd.SetDataMenuBar(G2frame,G2frame.dataFrame.AtomsMenu) … … 6007 6012 G2gd.SetDataMenuBar(G2frame,G2frame.dataFrame.TextureMenu) 6008 6013 UpdateTexture() 6009 G2plt.PlotTexture(G2frame,data,Start=True)6014 wx.CallAfter(G2plt.PlotTexture,G2frame,data,Start=True) 6010 6015 elif text == 'Pawley reflections': 6011 6016 G2gd.SetDataMenuBar(G2frame,G2frame.dataFrame.PawleyMenu) … … 6013 6018 else: 6014 6019 G2gd.SetDataMenuBar(G2frame) 6020 6015 6021 def FillMenus(): 6016 6022 '''Create the Select tab menus and bind to all menu items
Note: See TracChangeset
for help on using the changeset viewer.