Changeset 9cec2dd in sasview for invariantview/src/sans/perspectives/invariant/invariant_details.py
- Timestamp:
- Oct 21, 2011 2:17:13 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:
- 3ecaa2b
- Parents:
- 054f004
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
invariantview/src/sans/perspectives/invariant/invariant_details.py
rf6518f8 r9cec2dd 28 28 FONT_VARIANT = 1 29 29 30 ERROR_COLOR = wx.Colour(255, 0, 0, 128) 31 EXTRAPOLATION_COLOR = wx.Colour(169, 169, 168, 128) 32 INVARIANT_COLOR = wx.Colour(67, 208, 128, 128) 33 30 34 31 35 class InvariantContainer(wx.Object): … … 197 201 198 202 #Default color the extrapolation bar is grey 199 self.extrapolation_color_low = wx.Colour(169, 169, 168, 128)200 self.extrapolation_color_high = wx.Colour(169, 169, 168, 128)201 self.invariant_color = wx.Colour(67, 208, 128, 128)203 self.extrapolation_color_low = EXTRAPOLATION_COLOR 204 self.extrapolation_color_high = EXTRAPOLATION_COLOR 205 self.invariant_color = INVARIANT_COLOR 202 206 #change color of high and low bar when necessary 203 207 self.set_color_bar() … … 420 424 Change the color for low and high bar when necessary 421 425 """ 422 ERROR_COLOR = wx.Colour(255, 0, 0, 128) 426 self.extrapolation_color_low = EXTRAPOLATION_COLOR 427 self.extrapolation_color_high = EXTRAPOLATION_COLOR 428 self.invariant_color = INVARIANT_COLOR 423 429 #warning to the user when the extrapolated invariant is greater than %5 424 430 if self.low_scale >= 0.05 or self.low_scale > 1 or self.low_scale < 0: … … 426 432 if self.high_scale >= 0.05 or self.high_scale > 1 or self.high_scale < 0: 427 433 self.extrapolation_color_high = ERROR_COLOR 428 if self.inv_scale > = 0.05 or self.inv_scale >1 or self.inv_scale < 0:434 if self.inv_scale > 1 or self.inv_scale < 0: 429 435 self.invariant_color = ERROR_COLOR 430 436 431 437 def on_close(self, event): 432 438 """
Note: See TracChangeset
for help on using the changeset viewer.