Changeset fc292d3 in sasview for theoryview
- Timestamp:
- Jan 10, 2011 2:39:39 PM (14 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:
- 9299455
- Parents:
- 015d109
- Location:
- theoryview/perspectives/theory
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
theoryview/perspectives/theory/basepage.py
r2f60121 rfc292d3 8 8 import math 9 9 import string 10 from wx.lib.scrolledpanel import ScrolledPanel 10 11 from sans.guiframe.utils import format_number 11 12 from sans.guiframe.utils import check_float … … 32 33 ON_MAC = True 33 34 34 class BasicPage(wx.Scrolled Window):35 class BasicPage(wx.ScrolledPanel): 35 36 """ 36 37 This class provide general structure of fitpanel page … … 43 44 44 45 def __init__(self,parent, page_info=None, model_list_box=None): 45 wx.Scrolled Window.__init__(self, parent,46 style=wx.FULL_REPAINT_ON_RESIZE)46 wx.ScrolledPanel.__init__(self, parent) 47 self.SetupScrolling() 47 48 #Set window's font size 48 49 self.SetWindowVariant(variant=FONT_VARIANT) … … 288 289 self.vbox.Fit(self) 289 290 self.SetSizer(self.vbox) 290 self.set_scroll()291 291 292 self.Centre() 292 293 def set_scroll(self): 294 """ 295 """ 296 self.SetScrollbars(20, 20, 25, 65) 297 self.Layout() 298 self.SetAutoLayout(True) 299 293 300 294 def set_owner(self, owner): 301 295 """ … … 385 379 self.sizer4.Layout() 386 380 self.Layout() 387 self.Set Scrollbars(20, 20, 25, 65)381 self.SetupScrolling() 388 382 self.Refresh() 389 383 ## saving the state of enable dispersity button … … 992 986 items = self.structurebox.GetItems() 993 987 self.sizer1.Layout() 994 self.Set Scrollbars(20, 20, 25, 65)988 self.SetupScrolling() 995 989 for i in range(len(items)): 996 990 if items[i] == str(name): … … 1216 1210 sizer.Add(boxsizer1, 0, wx.EXPAND|wx.ALL, 10) 1217 1211 sizer.Layout() 1218 self.Set Scrollbars(20, 20, 25, 65)1212 self.SetupScrolling() 1219 1213 1220 1214 def _on_show_sld(self, event=None): … … 1308 1302 self.Layout() 1309 1303 self.Refresh() 1310 self.Set Scrollbars(20, 20, 25, 65)1304 self.SetupScrolling() 1311 1305 1312 1306 def _populate_box(self, combobox, list): … … 1618 1612 self.sizer4_4.Layout() 1619 1613 self.sizer4.Layout() 1620 self.Set Scrollbars(20, 20, 25, 65)1614 self.SetupScrolling() 1621 1615 1622 1616 def _reset_dispersity(self): … … 1683 1677 self.sizer4_4.Layout() 1684 1678 self.sizer4.Layout() 1685 self.Set Scrollbars(20, 20, 25, 65)1679 self.SetupScrolling() 1686 1680 1687 1681 def _set_sizer_arraydispersion(self): … … 1842 1836 self.sizer6.Add(boxsizer1, 0, wx.EXPAND|wx.ALL, 10) 1843 1837 self.sizer6.Layout() 1844 self.Set Scrollbars(20, 20, 25, 65)1838 self.SetupScrolling() 1845 1839 1846 1840 def _lay_out(self): -
theoryview/perspectives/theory/model_panel.py
r2f60121 rfc292d3 56 56 """ 57 57 self._on_display_description_helper() 58 self.Set Scrollbars(20, 20, 25, 65)58 self.SetupScrolling() 59 59 self.Refresh() 60 60 … … 327 327 self.sizer4_4.Layout() 328 328 self.sizer4.Layout() 329 self.Set Scrollbars(20,20,25,65)329 self.SetupScrolling() 330 330 331 331 … … 579 579 ##no model avaiable to draw sizer 580 580 self.sizer3.Layout() 581 self.Set Scrollbars(20,20,25,65)581 self.SetupScrolling() 582 582 return 583 583 box_description= wx.StaticBox(self, -1,str("Model Parameters")) … … 777 777 self.sizer3.Add(boxsizer1,0, wx.EXPAND | wx.ALL, 10) 778 778 self.sizer3.Layout() 779 self.Set Scrollbars(20,20,25,65)779 self.SetupScrolling() 780 780
Note: See TracChangeset
for help on using the changeset viewer.