- Timestamp:
- Apr 13, 2009 5:11:15 PM (16 years ago)
- Branches:
- master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- 7959f297
- Parents:
- 60d6c23
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
guiframe/local_perspectives/plotting/Plotter1D.py
r42d27f2 r5fe5871c 419 419 420 420 path = None 421 wildcard = "Text files (*.txt)|*.txt|CanSAS 1D files (*.xml)|*.xml|" 422 421 wildcard = "Text files (*.txt)|*.txt|"\ 422 "CanSAS 1D files(*.xml)|*.xml|" 423 423 424 dlg = wx.FileDialog(self, "Choose a file", os.getcwd(), "",wildcard , wx.SAVE) 424 425 … … 426 427 path = dlg.GetPath() 427 428 mypath = os.path.basename(path) 428 429 if os.path.splitext(mypath)[1].lower() ==".txt": 430 self._onsaveTXT(path) 431 if os.path.splitext(mypath)[1].lower() ==".xml": 432 self._onSaveXML(path) 433 429 434 dlg.Destroy() 430 if os.path.splitext(mypath)[1].lower() ==".txt": 431 self._onsaveTXT(path) 432 if os.path.splitext(mypath)[1].lower() ==".xml": 433 self._onSaveXML(path) 434 return 435 436 437 438 435 436 437 438 439 440
Note: See TracChangeset
for help on using the changeset viewer.