Changeset 48665ed in sasview
- Timestamp:
- Apr 19, 2011 12:17:35 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:
- 7ad8faa
- Parents:
- 52f3c98
- Location:
- guiframe
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
guiframe/data_panel.py
r0a2fdca r48665ed 247 247 wx.EVT_BUTTON(self, self.bt_plot.GetId(), self.on_plot) 248 248 249 self.bt_freeze = wx.Button(self, wx.NewId(), "Freeze ")250 self.bt_freeze.SetToolTipString("To trigger freeze ")249 self.bt_freeze = wx.Button(self, wx.NewId(), "Freeze Theory") 250 self.bt_freeze.SetToolTipString("To trigger freeze a theory") 251 251 wx.EVT_BUTTON(self, self.bt_freeze.GetId(), self.on_freeze) 252 252 … … 363 363 """ 364 364 """ 365 # Not implemented 366 return 367 """ 365 368 _, data_class, _= self.tree_ctrl.GetItemPyData(item) 366 369 if item.IsChecked(): … … 377 380 else: 378 381 self.bt_freeze.Disable() 379 382 """ 380 383 def load_data_list(self, list): 381 384 """ … … 384 387 if not list: 385 388 return 386 389 # uncheck previous items 390 self._uncheck_all() 391 387 392 for state_id, dstate in list.iteritems(): 388 393 data = dstate.get_data() … … 435 440 self.append_theory(state_id, theory_list) 436 441 437 442 def _uncheck_all(self): 443 """ 444 Uncheck all check boxes 445 """ 446 for item in self.list_cb_data.values(): 447 data_ctrl, _, _, _,_, _ = item 448 self.tree_ctrl.CheckItem(data_ctrl, False) 449 438 450 def old_append_theory(self, state_id, theory_list): 439 451 """ … … 652 664 theory_id=theory_id, 653 665 append=False) 654 666 655 667 def on_close_page(self, event=None): 656 668 """ -
guiframe/gui_manager.py
r52f3c98 r48665ed 214 214 if self._data_panel is not None: 215 215 panel_name = self.panel_on_focus.window_caption 216 self._data_panel.set_panel_on_focus(ID)#panel_name) 216 ID = self.panel_on_focus.uid 217 self._data_panel.set_panel_on_focus(ID) 217 218 #update combo 218 219 if self.panel_on_focus in self.plot_panels.values(): … … 2020 2021 if panel != plot: 2021 2022 plot.on_kill_focus(None) 2023 2022 2024 panel.on_set_focus(None) 2023 2025 # set focusing panel
Note: See TracChangeset
for help on using the changeset viewer.