Changeset c958e30 in sasview
- Timestamp:
- Jul 18, 2011 3:16:02 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:
- 80ddbd0
- Parents:
- 1d4f4c8
- Location:
- guiframe
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
guiframe/events.py
ra03d419 rc958e30 26 26 #event to ask dataloader plugin to load data if dataloader plugin exist 27 27 (NewLoadDataEvent, EVT_NEW_LOAD_DATA) = wx.lib.newevent.NewEvent() 28 #event to toggle from single model to batch 29 (NewBatchEvent, EVT_NEW_BATCH) = wx.lib.newevent.NewEvent() 28 30 -
guiframe/panel_base.py
r07c8630 rc958e30 13 13 14 14 from sans.guiframe.events import PanelOnFocusEvent 15 from sans.guiframe.events import EVT_NEW_BATCH 15 16 import wx 16 17 … … 51 52 self._reset_flag = False 52 53 self._has_changed = False 54 self.batch_on = False 53 55 self.group_id = None 56 self.Bind(EVT_NEW_BATCH, self.on_batch_selection) 54 57 self.Bind(wx.EVT_LEFT_DOWN, self.on_set_focus) 55 58 self.Bind(wx.EVT_TEXT_ENTER, self.on_set_focus) … … 57 60 self.Bind(wx.EVT_RIGHT_DOWN, self.on_set_focus) 58 61 62 def on_batch_selection(self, event): 63 """ 64 :param event: contains parameter enable . when enable is set to True 65 the application is in Batch mode 66 else the application is default mode(single mode) 67 """ 68 self.batch_on = event.enable 59 69 def save_project(self, doc=None): 60 70 """
Note: See TracChangeset
for help on using the changeset viewer.