Ignore:
Timestamp:
May 4, 2010 12:51:49 PM (14 years ago)
Author:
Gervaise Alina <gervyh@…>
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
Message:

working on data editor

File:
1 edited

Legend:

Unmodified
Added
Removed
  • calculatorview/perspectives/calculator/source_editor.py

    r91f151a rad6f597  
    33import sys 
    44from copy import deepcopy 
    5 from DataLoader.loader import Loader 
    65from sans.guiframe.utils import check_float 
    76_BOX_WIDTH = 60 
     
    1413else: 
    1514    _STATICBOX_WIDTH = 480 
    16     PANEL_WIDTH = 530 
     15    PANEL_WIDTH = 550 
    1716    PANEL_HEIGHT = 430 
    1817    FONT_VARIANT = 1 
     
    2120    def __init__(self, parent=None, manager=None, source=None, *args, **kwds): 
    2221        kwds['title'] = "Source Editor" 
    23         kwds['size'] =(PANEL_WIDTH, PANEL_HEIGHT) 
     22        kwds['size'] = (PANEL_WIDTH, PANEL_HEIGHT) 
    2423        wx.Dialog.__init__(self, parent=parent, *args, **kwds) 
    2524         
     
    497496if __name__ =="__main__": 
    498497    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) 
    504501    dlg.ShowModal() 
    505502    app.MainLoop() 
Note: See TracChangeset for help on using the changeset viewer.