Changeset 66aeb15 in sasview
- Timestamp:
- Mar 2, 2017 3:48:43 PM (8 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, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- 4afe1ba
- Parents:
- a97aebd
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/guiframe/data_panel.py
rcb1e9a5 r66aeb15 74 74 Check list control to be used for Data Panel 75 75 """ 76 def __init__(self, parent, *args, **kwds):76 def __init__(self, parent, root, *args, **kwds): 77 77 # agwstyle is introduced in wx.2.8.11 but is not working for mac 78 78 if IS_MAC and wx_version < 812: … … 97 97 del kwds['style'] 98 98 CT.CustomTreeCtrl.__init__(self, parent, *args, **kwds) 99 self.root = self.AddRoot( "Available Data")99 self.root = self.AddRoot(root) 100 100 101 101 def OnCompareItems(self, item1, item2): … … 531 531 theory_sizer.SetMinSize(wx.Size(w/13, h*2/5)) 532 532 533 self.tree_ctrl = DataTreeCtrl(parent=splitter, style=wx.SUNKEN_BORDER) 533 self.tree_ctrl = DataTreeCtrl(parent=splitter, 534 style=wx.SUNKEN_BORDER, 535 root="Available Data") 534 536 535 537 self.tree_ctrl.Bind(CT.EVT_TREE_ITEM_CHECKING, self.on_check_item) … … 568 570 569 571 self.tree_ctrl_theory = DataTreeCtrl(parent=splitter, 570 style=wx.SUNKEN_BORDER) 572 style=wx.SUNKEN_BORDER, 573 root="Available Theory") 571 574 self.tree_ctrl_theory.Bind(CT.EVT_TREE_ITEM_CHECKING, 572 575 self.on_check_item) 573 576 self.tree_ctrl_theory.Bind(CT.EVT_TREE_ITEM_MENU, 574 577 self.on_right_click_theory) 575 self.tree_ctrl.InsertItem(self.tree_ctrl.root, -1, " Data")576 self.tree_ctrl_theory.InsertItem(self.tree_ctrl_theory.root,577 -1, " Theory")578 578 splitter.SplitHorizontally(self.tree_ctrl, self.tree_ctrl_theory) 579 579 self.sizer1.Add(splitter, 1, wx.EXPAND | wx.ALL, 10)
Note: See TracChangeset
for help on using the changeset viewer.