Ignore:
Timestamp:
Sep 9, 2011 3:57:52 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:
3bc6090
Parents:
7f76f89
Message:

working on batch gui

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sansguiframe/src/sans/guiframe/gui_manager.py

    r2f81957 r73197d0  
    3232from sans.guiframe.gui_style import GUIFRAME 
    3333from sans.guiframe.gui_style import GUIFRAME_ID 
    34 #from sans.guiframe.events import NewLoadedDataEvent 
    3534from sans.guiframe.data_panel import DataPanel 
    3635from sans.guiframe.panel_base import PanelBase 
    3736from sans.guiframe.gui_toolbar import GUIToolBar 
    3837from sans.guiframe.data_processor import GridFrame 
     38from sans.guiframe.data_processor import BatchOutputDialog 
    3939from sans.guiframe.events import EVT_NEW_BATCH 
    4040from sans.dataloader.loader import Loader 
     
    288288        Display data into a grid in batch mode and show the grid 
    289289        """ 
    290         self.batch_frame.set_data(data) 
    291         self.batch_frame.Show(True) 
    292          
    293          
     290        #Neeed to save configuration for later  
     291        dlg = BatchOutputDialog(self, data) 
     292        flag = None 
     293        if dlg.ShowModal() == wx.ID_OK: 
     294            flag = dlg.onselect() 
     295            dlg.Destroy() 
     296        if flag == 1: 
     297            self.batch_frame.set_data(data) 
     298            self.batch_frame.Show(True) 
     299        elif flag == 2: 
     300            self.deplay_in_external_app(data) 
     301         
     302    def save_batch_into_file(self, data): 
     303        """ 
     304        Save data into file. default extension is .csv 
     305        """ 
     306    def deplay_in_external_app(self, data): 
     307        """ 
     308        Display data in the another application , by default Excel 
     309        """ 
    294310    def on_batch_selection(self, event): 
    295311        """ 
Note: See TracChangeset for help on using the changeset viewer.