Changeset ad6f597 in sasview for calculatorview/perspectives/calculator/source_editor.py
- Timestamp:
- May 4, 2010 12:51:49 PM (14 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:
- 85e665e
- Parents:
- 90b23e1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
calculatorview/perspectives/calculator/source_editor.py
r91f151a rad6f597 3 3 import sys 4 4 from copy import deepcopy 5 from DataLoader.loader import Loader6 5 from sans.guiframe.utils import check_float 7 6 _BOX_WIDTH = 60 … … 14 13 else: 15 14 _STATICBOX_WIDTH = 480 16 PANEL_WIDTH = 5 3015 PANEL_WIDTH = 550 17 16 PANEL_HEIGHT = 430 18 17 FONT_VARIANT = 1 … … 21 20 def __init__(self, parent=None, manager=None, source=None, *args, **kwds): 22 21 kwds['title'] = "Source Editor" 23 kwds['size'] = (PANEL_WIDTH, PANEL_HEIGHT)22 kwds['size'] = (PANEL_WIDTH, PANEL_HEIGHT) 24 23 wx.Dialog.__init__(self, parent=parent, *args, **kwds) 25 24 … … 497 496 if __name__ =="__main__": 498 497 app = wx.App() 499 # Instantiate a loader 500 loader = Loader() 501 # Load data 502 data = loader.load("MAR07232_rest.ASC") 503 dlg = SourceDialog(source=data.source) 498 from DataLoader.data_info import Source 499 source = Source() 500 dlg = SourceDialog(source=source) 504 501 dlg.ShowModal() 505 502 app.MainLoop()
Note: See TracChangeset
for help on using the changeset viewer.