ESS_GUIESS_GUI_DocsESS_GUI_batch_fittingESS_GUI_bumps_abstractionESS_GUI_iss1116ESS_GUI_iss879ESS_GUI_iss959ESS_GUI_openclESS_GUI_orderingESS_GUI_sync_sascalccostrafo411magnetic_scattrelease-4.1.1release-4.1.2release-4.2.2release_4.0.1ticket-1009ticket-1094-headlessticket-1242-2d-resolutionticket-1243ticket-1249ticket885unittest-saveload
Last change
on this file since 495809d was
f3d51f6,
checked in by Mathieu Doucet <doucetm@…>, 17 years ago
|
Initial import: gui for P(r) inversion
|
-
Property mode set to
100644
|
File size:
305 bytes
|
Line | |
---|
1 | import os |
---|
2 | import wx |
---|
3 | |
---|
4 | def choose_data_file(parent): |
---|
5 | path = None |
---|
6 | dlg = wx.FileDialog(parent, "Choose a file", os.getcwd(), "", "*.txt", wx.OPEN) |
---|
7 | if dlg.ShowModal() == wx.ID_OK: |
---|
8 | path = dlg.GetPath() |
---|
9 | mypath = os.path.basename(path) |
---|
10 | dlg.Destroy() |
---|
11 | |
---|
12 | return path |
---|
Note: See
TracBrowser
for help on using the repository browser.