Changeset f75ea4a in sasview
- Timestamp:
- Apr 6, 2010 11:53:36 AM (15 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:
- e071b1c
- Parents:
- 45802d4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
invariantview/perspectives/invariant/invariant_details.py
r45802d4 rf75ea4a 109 109 title="Invariant Details", 110 110 size=(PANEL_WIDTH, PANEL_HEIGHT)): 111 try: 112 wx.Dialog.__init__(self, parent=parent, id=id,title=title,size=size) 113 114 #Font size 115 self.SetWindowVariant(variant=FONT_VARIANT) 116 self.parent = parent 117 #self.qstar_container 118 self.qstar_container = qstar_container 119 #warning message 120 self.warning_msg = self.qstar_container.warning_msg 121 122 #Define scale of each bar 123 self.low_inv_percent = self.qstar_container.qstar_low_percent 124 self.low_scale = self.get_scale(percentage=self.low_inv_percent, 125 scale_name="Extrapolated at Low Q") 126 self.inv_percent = self.qstar_container.qstar_percent 127 self.inv_scale = self.get_scale(percentage=self.inv_percent, 128 scale_name="Inv in Q range") 129 self.high_inv_percent = self.qstar_container.qstar_high_percent 130 self.high_scale = self.get_scale(percentage=self.high_inv_percent, 131 scale_name="Extrapolated at High Q") 132 133 #Default color the extrapolation bar is grey 134 self.extrapolation_color_low = wx.Colour(169, 169, 168, 128) 135 self.extrapolation_color_high = wx.Colour(169, 169, 168, 128) 136 #change color of high and low bar when necessary 137 self.set_color_bar() 138 #draw the panel itself 139 self._do_layout() 140 self.set_values() 141 except: 142 print "error", sys.exc_value() 111 wx.Dialog.__init__(self, parent=parent, id=id,title=title,size=size) 112 113 #Font size 114 self.SetWindowVariant(variant=FONT_VARIANT) 115 self.parent = parent 116 #self.qstar_container 117 self.qstar_container = qstar_container 118 #warning message 119 self.warning_msg = self.qstar_container.warning_msg 143 120 121 #Define scale of each bar 122 self.low_inv_percent = self.qstar_container.qstar_low_percent 123 self.low_scale = self.get_scale(percentage=self.low_inv_percent, 124 scale_name="Extrapolated at Low Q") 125 self.inv_percent = self.qstar_container.qstar_percent 126 self.inv_scale = self.get_scale(percentage=self.inv_percent, 127 scale_name="Inv in Q range") 128 self.high_inv_percent = self.qstar_container.qstar_high_percent 129 self.high_scale = self.get_scale(percentage=self.high_inv_percent, 130 scale_name="Extrapolated at High Q") 131 132 #Default color the extrapolation bar is grey 133 self.extrapolation_color_low = wx.Colour(169, 169, 168, 128) 134 self.extrapolation_color_high = wx.Colour(169, 169, 168, 128) 135 #change color of high and low bar when necessary 136 self.set_color_bar() 137 #draw the panel itself 138 self._do_layout() 139 self.set_values() 140 144 141 def _define_structure(self): 145 142 """
Note: See TracChangeset
for help on using the changeset viewer.