Changeset 24adb89 in sasview


Ignore:
Timestamp:
Jul 19, 2011 5:36:20 PM (13 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:
6ac1cf5
Parents:
cc31608
Message:

working on guiframe in batch mode

Location:
guiframe
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • guiframe/data_panel.py

    r8f19b69 r24adb89  
    336336                                             style=wx.RB_GROUP) 
    337337        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()) 
    338342         
    339343        self.rb_single_mode.SetValue(True) 
  • guiframe/gui_manager.py

    r80ddbd0 r24adb89  
    7474from sans.guiframe.panel_base import PanelBase 
    7575from sans.guiframe.gui_toolbar import GUIToolBar 
     76from sans.guiframe.data_processor import GridFrame 
    7677from sans.guiframe.events import EVT_NEW_BATCH 
    7778from DataLoader.loader import Loader 
     
    234235        self.schedule_full_draw_list = [] 
    235236        self.idletimer = wx.CallLater(1, self._onDrawIdle) 
    236  
     237         
     238        self.batch_frame = GridFrame(parent=self) 
     239        self.batch_frame.Hide() 
    237240        # Check for update 
    238241        #self._check_update(None) 
     
    248251        self.setup_custom_conf() 
    249252     
     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         
    250261    def on_batch_selection(self, event): 
    251262        """ 
     
    256267        self.batch_on = event.enable 
    257268        for plug in self.plugins: 
    258             plug.set_bacth_selection(self.batch_on) 
     269            plug.set_batch_selection(self.batch_on) 
    259270             
    260271    def setup_custom_conf(self): 
  • guiframe/plugin_base.py

    r80ddbd0 r24adb89  
    200200        self.parent.set_perspective(self.perspective) 
    201201         
    202     def set_bacth_selection(self, flag): 
     202    def set_batch_selection(self, flag): 
    203203        """ 
    204204        the plugin to its batch state if flag is True 
Note: See TracChangeset for help on using the changeset viewer.