Ignore:
Timestamp:
Sep 15, 2016 6:33:57 AM (8 years ago)
Author:
Piotr Rozyczko <rozyczko@…>
Branches:
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
Children:
54a1cf8
Parents:
ab4581b
git-author:
Lewis O'Driscoll <lewis.o'driscoll@…> (08/11/16 05:07:32)
git-committer:
Piotr Rozyczko <rozyczko@…> (09/15/16 06:33:57)
Message:

Make PropertyDialog? ComboBoxes? read-only.

Also set scale values automatically when the user chooses a view, making
some of the logic in PlotPanel? redundant

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sasgui/plottools/PlotPanel.py

    rab4581b ra6026f52  
    713713                if dial.ShowModal() == wx.ID_OK: 
    714714                    self.xLabel, self.yLabel, self.viewModel = dial.getValues() 
    715                     if self.viewModel == "Linear y vs x": 
    716                         self.xLabel = "x" 
    717                         self.yLabel = "y" 
    718                         self.viewModel = "--" 
    719                         dial.setValues(self.xLabel, self.yLabel, self.viewModel) 
    720                     if self.viewModel == "Guinier lny vs x^(2)": 
    721                         self.xLabel = "x^(2)" 
    722                         self.yLabel = "ln(y)" 
    723                         self.viewModel = "--" 
    724                         dial.setValues(self.xLabel, self.yLabel, self.viewModel) 
    725                     if self.viewModel == "XS Guinier ln(y*x) vs x^(2)": 
    726                         self.xLabel = "x^(2)" 
    727                         self.yLabel = "ln(y*x)" 
    728                         self.viewModel = "--" 
    729                         dial.setValues(self.xLabel, self.yLabel, self.viewModel) 
    730                     if self.viewModel == "Porod y*x^(4) vs x^(4)": 
    731                         self.xLabel = "x^(4)" 
    732                         self.yLabel = "y*x^(4)" 
    733                         self.viewModel = "--" 
    734                         dial.setValues(self.xLabel, self.yLabel, self.viewModel) 
    735                     if self.viewModel == "Kratky y*x^(2) vs x": 
    736                         self.xLabel = "x" 
    737                         self.yLabel = "y*x^(2)" 
    738                         self.viewModel = "--" 
    739                         dial.setValues(self.xLabel, self.yLabel, self.viewModel) 
    740715                    self._onEVT_FUNC_PROPERTY() 
    741716                dial.Destroy() 
Note: See TracChangeset for help on using the changeset viewer.