Changeset 24fc06a in sasview


Ignore:
Timestamp:
Mar 22, 2017 9:26:51 PM (7 months ago)
Author:
krzywon
Branches:
master, costrafo411, py3, ticket-853-fit-gui-to-calc, ticket-869, ticket-887-reorg, ticket-915, ticket-947-sasmodels-docs, ticket-976, 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.