Changeset cc061c3 in sasview


Ignore:
Timestamp:
Mar 3, 2011 4:04:58 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:
bfa73ca
Parents:
883e5f5
Message:

working on data panel

File:
1 edited

Legend:

Unmodified
Added
Removed
  • guiframe/data_panel.py

    r5c4b674 rcc061c3  
    7070        self.layout_selection() 
    7171        self.layout_data_list() 
    72         self.layout_theory_list() 
    7372        self.layout_button() 
    7473        self.layout_batch() 
     
    8180        self.vbox  = wx.BoxSizer(wx.VERTICAL) 
    8281        self.sizer1 = wx.BoxSizer(wx.VERTICAL) 
    83         self.sizer1.SetMinSize((w/12, h*1/5)) 
    84         self.sizer6 = wx.BoxSizer(wx.VERTICAL) 
    85         self.sizer6.SetMinSize((w/12, h*1/5)) 
     82        self.sizer1.SetMinSize((w/12, h*2/5)) 
     83       
    8684        self.sizer2 = wx.BoxSizer(wx.VERTICAL) 
    8785        self.sizer3 = wx.GridBagSizer(5,5) 
     
    9189        self.vbox.Add(self.sizer5, 0,wx.EXPAND|wx.ALL,10) 
    9290        self.vbox.Add(self.sizer1, 0,wx.EXPAND|wx.ALL,0) 
    93         self.vbox.Add(self.sizer6, 0,wx.EXPAND|wx.ALL,0) 
    9491        self.vbox.Add(self.sizer2, 0,wx.EXPAND|wx.ALL,10) 
    9592        self.vbox.Add(self.sizer3, 0,wx.EXPAND|wx.ALL,10) 
     
    286283        self.sizer1.Add(self.tree_ctrl,1, wx.EXPAND|wx.ALL, 10) 
    287284         
    288     def layout_theory_list(self): 
    289         """ 
    290         Add a listcrtl in the panel 
    291         """ 
    292         self.tree_ctrl_theory = DataTreeCtrl(parent=self) 
    293         self.tree_ctrl_theory.Bind(CT.EVT_TREE_ITEM_CHECKED, self.on_check_item) 
    294         self.tree_ctrl_theory.Bind(CT.EVT_TREE_ITEM_RIGHT_CLICK, self.on_right_click) 
    295         label = wx.StaticText(self, -1, "CREATED DATA") 
    296         label.SetForegroundColour('blue') 
    297         self.sizer6.Add(label, 0, wx.LEFT, 10) 
    298         self.sizer6.Add(self.tree_ctrl_theory,1, wx.EXPAND|wx.ALL, 10) 
    299285 
    300286    def on_right_click(self, event): 
     
    350336            theory_list = dstate.get_theory() 
    351337            data_child = None 
     338             
    352339            if theory_list: 
    353                 for theory_id,theory in theory_list: 
     340                for theory_id,theory in theory_list.iteritems(): 
    354341                    for item in self.list_cb_data: 
    355342                        data_id, data_class = self.tree_ctrl.GetItemPyData(item)  
     
    358345                            for process in data.process: 
    359346                                theory_child = self.tree_ctrl.FindItem(data_child, 
    360                                                                 "Available Theories"), 
     347                                                                "CREATED DATA"), 
    361348                                if theory is not None: 
    362349                                    av_theory_child =self.tree_ctrl.AppendItem(theory_child, 
     
    485472    ALWAYS_ON = True 
    486473     
    487     def __init__(self, parent=None, owner=None, manager=None,size=(600, 800), 
     474    def __init__(self, parent=None, owner=None, manager=None,size=(400, 800), 
    488475                         list_of_perspective=[],list=[], *args, **kwds): 
    489         #kwds['size'] = size 
     476        kwds['size'] = size 
    490477        kwds['id'] = -1 
    491478        kwds['title']= "Loaded Data" 
     
    495482        self.manager = manager 
    496483        self.panel = DataPanel(parent=self,  
    497                                size=size, 
     484                               #size=size, 
    498485                               list_of_perspective=list_of_perspective) 
    499486      
     
    598585         
    599586        window = DataFrame(list=data_list) 
    600         window.load_data_list(list=data_list) 
     587        #window.load_data_list(list=data_list) 
    601588        window.layout_perspective(list_of_perspective=list_of_perspective) 
    602589        window.Show(True) 
Note: See TracChangeset for help on using the changeset viewer.