Ignore:
Timestamp:
Aug 11, 2016 7:07:32 AM (8 years ago)
Author:
lewis
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:
1ed6be7
Parents:
b2f21e0d
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

    rb2f21e0d r5129686  
    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.