Changeset 4ff124ad in sasview


Ignore:
Timestamp:
Jun 27, 2011 11:15:10 AM (13 years ago)
Author:
Jae Cho <jhjcho@…>
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:
904193cd
Parents:
c501ea5
Message:

use scrolled panel for welcomepage

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sansview/welcome_panel.py

    r93f7c62 r4ff124ad  
    1919import local_config as config 
    2020import logging 
    21  
     21from wx.lib.scrolledpanel import ScrolledPanel 
    2222from sans.guiframe.panel_base import PanelBase 
    2323#Font size width  
     
    7676     
    7777     
    78 class WelcomePage(wx.Panel): 
     78class WelcomePage(ScrolledPanel): 
    7979    """ 
    8080        Panel created like about box  as a welcome page 
     
    8989    
    9090     
    91     def __init__(self, *args, **kwds): 
     91    def __init__(self, parent, *args, **kwds): 
    9292 
    9393        kwds["style"] = wx.DEFAULT_DIALOG_STYLE 
    9494        
    95         wx.Panel.__init__(self, *args, **kwds) 
    96          
     95        ScrolledPanel.__init__(self, parent, **kwds) 
     96        self.SetupScrolling() 
    9797        image = os.path.join("images","SVwelcome.png") 
    9898        self.SetWindowVariant(variant = FONT_VARIANT) 
Note: See TracChangeset for help on using the changeset viewer.