Changeset c87d55a in sasview for guitools/PlotPanel.py


Ignore:
Timestamp:
Sep 4, 2008 9:37:08 AM (16 years ago)
Author:
Mathieu Doucet <doucetm@…>
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:
d89f09b
Parents:
84545dd
Message:

updated test_panel as a "test case" for refactoring

File:
1 edited

Legend:

Unmodified
Added
Removed
  • guitools/PlotPanel.py

    r08b9e586 rc87d55a  
    382382            when clicking on linear Fit on context menu , display Fitting Dialog 
    383383        """ 
    384         list =[] 
    385         list = self.graph.returnPlottable() 
     384        list = {} 
     385        plotlist = self.graph.returnPlottable() 
     386        if self.graph.selected_plottable is not None: 
     387            for item in plotlist: 
     388                if item.name==self.graph.selected_plottable: 
     389                    list[item] = plotlist[item] 
     390        else: 
     391            list = plotlist 
    386392        from fitDialog import LinearFit 
    387393         
Note: See TracChangeset for help on using the changeset viewer.