Changeset cc061c3 in sasview
- Timestamp:
- Mar 3, 2011 4:04:58 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:
- bfa73ca
- Parents:
- 883e5f5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
guiframe/data_panel.py
r5c4b674 rcc061c3 70 70 self.layout_selection() 71 71 self.layout_data_list() 72 self.layout_theory_list()73 72 self.layout_button() 74 73 self.layout_batch() … … 81 80 self.vbox = wx.BoxSizer(wx.VERTICAL) 82 81 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 86 84 self.sizer2 = wx.BoxSizer(wx.VERTICAL) 87 85 self.sizer3 = wx.GridBagSizer(5,5) … … 91 89 self.vbox.Add(self.sizer5, 0,wx.EXPAND|wx.ALL,10) 92 90 self.vbox.Add(self.sizer1, 0,wx.EXPAND|wx.ALL,0) 93 self.vbox.Add(self.sizer6, 0,wx.EXPAND|wx.ALL,0)94 91 self.vbox.Add(self.sizer2, 0,wx.EXPAND|wx.ALL,10) 95 92 self.vbox.Add(self.sizer3, 0,wx.EXPAND|wx.ALL,10) … … 286 283 self.sizer1.Add(self.tree_ctrl,1, wx.EXPAND|wx.ALL, 10) 287 284 288 def layout_theory_list(self):289 """290 Add a listcrtl in the panel291 """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)299 285 300 286 def on_right_click(self, event): … … 350 336 theory_list = dstate.get_theory() 351 337 data_child = None 338 352 339 if theory_list: 353 for theory_id,theory in theory_list :340 for theory_id,theory in theory_list.iteritems(): 354 341 for item in self.list_cb_data: 355 342 data_id, data_class = self.tree_ctrl.GetItemPyData(item) … … 358 345 for process in data.process: 359 346 theory_child = self.tree_ctrl.FindItem(data_child, 360 " Available Theories"),347 "CREATED DATA"), 361 348 if theory is not None: 362 349 av_theory_child =self.tree_ctrl.AppendItem(theory_child, … … 485 472 ALWAYS_ON = True 486 473 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), 488 475 list_of_perspective=[],list=[], *args, **kwds): 489 #kwds['size'] = size476 kwds['size'] = size 490 477 kwds['id'] = -1 491 478 kwds['title']= "Loaded Data" … … 495 482 self.manager = manager 496 483 self.panel = DataPanel(parent=self, 497 size=size,484 #size=size, 498 485 list_of_perspective=list_of_perspective) 499 486 … … 598 585 599 586 window = DataFrame(list=data_list) 600 window.load_data_list(list=data_list)587 #window.load_data_list(list=data_list) 601 588 window.layout_perspective(list_of_perspective=list_of_perspective) 602 589 window.Show(True)
Note: See TracChangeset
for help on using the changeset viewer.