- Timestamp:
- Mar 25, 2023 11:11:14 AM (2 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/GSASIIctrlGUI.py ¶
r5508 r5523 3867 3867 ################################################################################ 3868 3868 def GetImportFile(G2frame, message, defaultDir="", defaultFile="", 3869 style=wx.FD_OPEN, parent=None, 3870 *args, **kwargs): 3869 style=wx.FD_OPEN, parent=None,*args, **kwargs): 3871 3870 '''Uses a customized dialog that gets files from the appropriate import directory. 3872 3871 Arguments are used the same as in :func:`wx.FileDialog`. Selection of … … 3887 3886 # print('debug: GetImportFile from '+defaultDir) 3888 3887 # print('debug: GetImportFile pth '+pth) 3889 dlg = wx.FileDialog(parent, message, defaultDir, defaultFile, *args, 3890 style=style, **kwargs) 3888 dlg = wx.FileDialog(parent, message, defaultDir, defaultFile, *args,style=style, **kwargs) 3891 3889 # dlg.CenterOnParent() 3892 3890 if not defaultDir and pth: dlg.SetDirectory(pth) … … 3931 3929 return pth 3932 3930 elif GSASIIpath.GetConfigValue('debug'): 3933 print('Ignoring Config Import_directory value: '+ 3934 GSASIIpath.GetConfigValue('Import_directory')) 3931 print('Ignoring Config Import_directory value: '+GSASIIpath.GetConfigValue('Import_directory')) 3935 3932 if G2frame.LastImportDir: 3936 3933 if os.path.exists(G2frame.LastImportDir): … … 5316 5313 ''' 5317 5314 pth = GetExportPath(G2frame) 5318 dlg = wx.DirDialog( 5319 G2frame, 'Input directory where file(s) will be written', pth, 5320 wx.DD_DEFAULT_STYLE) 5315 dlg = wx.DirDialog(G2frame,'Input directory where file(s) will be written',pth,wx.DD_DEFAULT_STYLE) 5321 5316 dlg.CenterOnParent() 5322 5317 try: -
TabularUnified trunk/GSASIIphsGUI.py ¶
r5522 r5523 6424 6424 if not G2frame.GSASprojectfile: #force a project save 6425 6425 G2frame.OnFileSaveas(event) 6426 dName = G2frame.LastGPXdir 6427 os.chdir(dName) 6426 6428 if G2frame.RMCchoice == 'fullrmc': 6427 6429 RMCPdict = data['RMC']['fullrmc'] … … 6447 6449 G2frame.dataWindow.FRMCDataEdit.Enable(G2G.wxID_RUNRMC,False) 6448 6450 return 6451 dName = G2frame.LastGPXdir 6449 6452 pName = generalData['Name'] 6450 6453 G2frame.dataWindow.FRMCDataEdit.Enable(G2G.wxID_RUNRMC,True) -
TabularUnified trunk/GSASIIpwd.py ¶
r5509 r5523 2921 2921 inst = PWDdata['Instrument Parameters'][0] 2922 2922 try: 2923 pName = Phase['General']['Name'] 2923 2924 refList = PWDdata['Reflection Lists'][Name]['RefList'] 2924 2925 except TypeError:
Note: See TracChangeset
for help on using the changeset viewer.