Ignore:
Timestamp:
Mar 22, 2017 9:26:51 PM (8 years ago)
Author:
krzywon
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.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
ba90c32
Parents:
f6bb24d
git-author:
Jeff Krzywon <krzywon@…> (03/22/17 21:26:51)
git-committer:
krzywon <krzywon@…> (03/22/17 21:26:51)
Message:

Populate data file combo box with loaded files.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sasgui/guiframe/local_perspectives/plotting/parameters_panel_slicer.py

    rf6bb24d r24fc06a  
    136136            iy += 1 
    137137            id = wx.NewId() 
    138             # TODO: Get list of data objects already loaded 
    139             choices = ("a", "b", "c", "d") 
     138            main_window = self.parent.parent 
     139            self.loaded_data = main_window._data_manager.data_name_dict 
     140            choices = self.loaded_data.keys() 
    140141            self.data_list = wx.CheckListBox(parent=self, id=id, 
    141142                                        choices=choices, 
     
    201202        :param evt: Event triggering hide/show of the batch slicer parameters 
    202203        """ 
    203         for item in self.data_list.Checked: 
     204        # Process each data file individually 
     205        for item in self.data_list.CheckedStrings: 
    204206            print item 
    205             # Process each data file 
    206             # TODO: plot data 
     207            # Get data_id 
     208            data_dict = self.parent.parent._data_manager.get_by_name([item]) 
     209            data_ids = data_dict.keys() 
     210            # Plot data 
     211            self.parent.parent.plot_data(state_id=[], data_id=data_ids[0], theory_id=[]) 
    207212            # TODO: apply slicer 
    208213            # TODO: save file (if desired) 
Note: See TracChangeset for help on using the changeset viewer.