Changeset 015d109 in sasview for sansview


Ignore:
Timestamp:
Jan 10, 2011 12:36:38 PM (14 years ago)
Author:
Gervaise Alina <gervyh@…>
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:
fc292d3
Parents:
2f60121
Message:

use scrolledpanel instead of scrolledwindow

Location:
sansview/perspectives/fitting
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sansview/perspectives/fitting/basepage.py

    r340c2b3 r015d109  
    88import math 
    99import string 
     10from sans.guiframe.panel_base import PanelBase 
    1011from wx.lib.scrolledpanel import ScrolledPanel 
    1112from sans.guiframe.utils import format_number,check_float 
     
    3132    ON_MAC = True 
    3233     
    33 class BasicPage(wx.ScrolledPanel, PanelBase): 
     34class BasicPage(ScrolledPanel, PanelBase): 
    3435    """ 
    3536    This class provide general structure of  fitpanel page 
     
    4041    window_caption = "Basic page " 
    4142     
    42     def __init__(self, parent, page_info): 
    43         """ 
    44         """ 
    45         wx.ScrolledWindow.__init__(self, parent,  
    46                                    style=wx.FULL_REPAINT_ON_RESIZE) 
     43    def __init__(self, parent, page_info, **kwargs): 
     44        """ 
     45        """ 
     46        ScrolledPanel.__init__(self, parent, **kwargs) 
    4747        PanelBase.__init__(self) 
    4848        self.SetupScrolling() 
  • sansview/perspectives/fitting/fitpage.py

    r64bda1e r015d109  
    21792179        if model ==None: 
    21802180            self.sizer3.Layout() 
    2181             self.SetScrollbars(20,20,25,65) 
     2181            self.SetupScrolling() 
    21822182            return 
    21832183        ## the panel is drawn using the current value of the fit engine 
     
    25162516        self.Layout() 
    25172517        self.Refresh() 
    2518         self.SetScrollbars(20,20,25,65) 
     2518        #self.SetScrollbars(20,20,25,65) 
     2519        self.SetupScrolling() 
    25192520         
    25202521 
Note: See TracChangeset for help on using the changeset viewer.