Changeset 2071
- Timestamp:
- Nov 25, 2015 2:41:43 PM (7 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASII.py
r2068 r2071 3684 3684 def OnInit(self): 3685 3685 '''Called automatically when the app is created.''' 3686 import platform 3686 3687 if '2.7' not in sys.version[:5]: 3687 3688 dlg = wx.MessageDialog(None, -
trunk/GSASIIIO.py
r2068 r2071 2371 2371 2372 2372 if __name__ == '__main__': 2373 app = wx.PySimpleApp() 2374 frm = wx.Frame(None) # create a frame 2375 frm.Show(True) 2376 filename = '/tmp/notzip.zip' 2377 filename = '/tmp/all.zip' 2373 import GSASII 2374 application = GSASII.GSASIImain(0) 2375 G2frame = application.main 2376 #app = wx.PySimpleApp() 2377 #G2frame = wx.Frame(None) # create a frame 2378 #frm.Show(True) 2379 #filename = '/tmp/notzip.zip' 2380 #filename = '/tmp/all.zip' 2378 2381 #filename = '/tmp/11bmb_7652.zip' 2379 2382 2380 2383 #selection=None, confirmoverwrite=True, parent=None 2381 2384 #print ExtractFileFromZip(filename, selection='11bmb_7652.fxye',parent=frm) 2382 print ExtractFileFromZip(filename,multipleselect=True)2383 #confirmread=False, confirmoverwrite=False)2385 #print ExtractFileFromZip(filename,multipleselect=True) 2386 # #confirmread=False, confirmoverwrite=False) 2384 2387 2385 2388 # choicelist=[ ('a','b','c'), … … 2391 2394 # if dlg.ShowModal() == wx.ID_OK: 2392 2395 # print 'Got OK' 2396 imagefile = '/tmp/NDC5_00237_3.ge3' 2397 Comments, Data, Npix, Image = GetImageData(G2frame,imagefile,imageOnly=False,ImageTag=None) 2398 2399 print("\n\nResults loaded to Comments, Data, Npix and Image\n\n") 2400 2401 GSASIIpath.IPyBreak_base()
Note: See TracChangeset
for help on using the changeset viewer.