Changeset 24adb89 in sasview
- Timestamp:
- Jul 19, 2011 5:36:20 PM (13 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:
- 6ac1cf5
- Parents:
- cc31608
- Location:
- guiframe
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
guiframe/data_panel.py
r8f19b69 r24adb89 336 336 style=wx.RB_GROUP) 337 337 self.rb_batch_mode = wx.RadioButton(self, -1, 'Batch Mode') 338 self.Bind(wx.EVT_RADIOBUTTON, self.on_single_mode, 339 id=self.rb_single_mode.GetId()) 340 self.Bind(wx.EVT_RADIOBUTTON, self.on_batch_mode, 341 id=self.rb_batch_mode.GetId()) 338 342 339 343 self.rb_single_mode.SetValue(True) -
guiframe/gui_manager.py
r80ddbd0 r24adb89 74 74 from sans.guiframe.panel_base import PanelBase 75 75 from sans.guiframe.gui_toolbar import GUIToolBar 76 from sans.guiframe.data_processor import GridFrame 76 77 from sans.guiframe.events import EVT_NEW_BATCH 77 78 from DataLoader.loader import Loader … … 234 235 self.schedule_full_draw_list = [] 235 236 self.idletimer = wx.CallLater(1, self._onDrawIdle) 236 237 238 self.batch_frame = GridFrame(parent=self) 239 self.batch_frame.Hide() 237 240 # Check for update 238 241 #self._check_update(None) … … 248 251 self.setup_custom_conf() 249 252 253 def on_set_batch_result(self, data, name): 254 """ 255 Display data into a grid in batch mode and show the grid 256 """ 257 self.batch_frame.set_data(data) 258 self.batch_frame.Show(True) 259 260 250 261 def on_batch_selection(self, event): 251 262 """ … … 256 267 self.batch_on = event.enable 257 268 for plug in self.plugins: 258 plug.set_ba cth_selection(self.batch_on)269 plug.set_batch_selection(self.batch_on) 259 270 260 271 def setup_custom_conf(self): -
guiframe/plugin_base.py
r80ddbd0 r24adb89 200 200 self.parent.set_perspective(self.perspective) 201 201 202 def set_ba cth_selection(self, flag):202 def set_batch_selection(self, flag): 203 203 """ 204 204 the plugin to its batch state if flag is True
Note: See TracChangeset
for help on using the changeset viewer.