Changeset 9abec44 in sasview
- Timestamp:
- Apr 11, 2010 2:27:41 PM (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:
- b7f29fc
- Parents:
- 6747217
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
invariantview/perspectives/invariant/invariant_panel.py
rdce0756 r9abec44 5 5 6 6 import wx 7 7 8 import sys 8 9 from wx.lib.scrolledpanel import ScrolledPanel 9 10 from sans.invariant import invariant 10 11 from sans.guiframe.utils import format_number, check_float … … 43 44 44 45 45 class InvariantPanel( wx.ScrolledWindow):46 class InvariantPanel(ScrolledPanel): 46 47 """ 47 48 Provides the Invariant GUI. … … 54 55 CENTER_PANE = True 55 56 def __init__(self, parent, data=None, manager=None): 56 wx.ScrolledWindow.__init__(self, parent, style= wx.FULL_REPAINT_ON_RESIZE ) 57 ScrolledPanel.__init__(self, parent) 58 self.SetupScrolling() 57 59 #Font size 58 60 self.SetWindowVariant(variant=FONT_VARIANT) … … 418 420 self.button_details.Enable() 419 421 self.button_details.SetFocus() 420 422 self.Layout() 423 421 424 def reset_panel(self): 422 425 """ … … 457 460 #prepare a new container to put result of invariant 458 461 self.inv_container = InvariantContainer() 462 self.Layout() 459 463 460 464 def _define_structure(self): … … 969 973 wx.LEFT|wx.RIGHT|wx.BOTTOM, 10)]) 970 974 self.SetSizer(self.main_sizer) 971 self.SetScrollbars(20,20,25,65)972 975 self.SetAutoLayout(True) 973 976
Note: See TracChangeset
for help on using the changeset viewer.