Changeset a3efdeb in sasview for invariantview/src
- Timestamp:
- Apr 12, 2012 4:28:18 PM (13 years ago)
- 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:
- 5a0dac1f
- Parents:
- 25c0def
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
invariantview/src/sans/perspectives/invariant/invariant_details.py
r9cec2dd ra3efdeb 1 1 """ 2 Invariant panel 3 """ 2 4 import wx 3 5 import sys 4 6 5 import numpy6 7 from sans.guiframe.utils import format_number 7 from sans.guiframe.utils import check_float8 8 from invariant_widgets import OutputTextCtrl 9 9 # Dimensions related to chart … … 415 415 except: 416 416 scale = RECTANGLE_SCALE 417 self.warning_msg += "Receive an invalid scale for %s\n" 418 self.warning_msg += "check this value : %s\n"%(str(scale_name), 419 str(percentage)) 417 self.warning_msg += "Recieve an invalid scale for %s\n" 418 self.warning_msg += "check this value : %s\n" % str(percentage) 420 419 return scale 421 420 … … 535 534 gc.DrawPath(path) 536 535 gc.PopState() 537 538 539 if __name__ =="__main__":540 app = wx.App()541 container = InvariantContainer()542 container.qstar_total = 100.0543 container.qstar = 50544 container.qstar_low = None545 container.qstar_high = "alina"546 container.compute_percentage()547 548 dlg = InvariantDetailsPanel(qstar_container=container)549 dlg.ShowModal()550 app.MainLoop()
Note: See TracChangeset
for help on using the changeset viewer.