Changeset c958e30 in sasview


Ignore:
Timestamp:
Jul 18, 2011 3:16:02 PM (11 years ago)
Author:
Gervaise Alina <gervyh@…>
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
Message:

add a new event for batch mode

Location:
guiframe
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • guiframe/events.py

    ra03d419 rc958e30  
    2626#event to ask dataloader plugin to load data if dataloader plugin exist 
    2727(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() 
    2830 
  • guiframe/panel_base.py

    r07c8630 rc958e30  
    1313 
    1414from sans.guiframe.events import PanelOnFocusEvent 
     15from sans.guiframe.events import EVT_NEW_BATCH 
    1516import wx 
    1617 
     
    5152        self._reset_flag = False 
    5253        self._has_changed = False 
     54        self.batch_on = False 
    5355        self.group_id = None 
     56        self.Bind(EVT_NEW_BATCH, self.on_batch_selection) 
    5457        self.Bind(wx.EVT_LEFT_DOWN, self.on_set_focus) 
    5558        self.Bind(wx.EVT_TEXT_ENTER, self.on_set_focus) 
     
    5760        self.Bind(wx.EVT_RIGHT_DOWN, self.on_set_focus) 
    5861         
     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 
    5969    def save_project(self, doc=None): 
    6070        """ 
Note: See TracChangeset for help on using the changeset viewer.