Changeset 9abec44 in sasview


Ignore:
Timestamp:
Apr 11, 2010 4:27:41 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:
b7f29fc
Parents:
6747217
Message:

make sur invariant panel is properly layout for windows vista

File:
1 edited

Legend:

Unmodified
Added
Removed
  • invariantview/perspectives/invariant/invariant_panel.py

    rdce0756 r9abec44  
    55 
    66import wx 
     7 
    78import sys 
    8  
     9from wx.lib.scrolledpanel import ScrolledPanel 
    910from sans.invariant import invariant 
    1011from sans.guiframe.utils import format_number, check_float 
     
    4344 
    4445 
    45 class InvariantPanel(wx.ScrolledWindow): 
     46class InvariantPanel(ScrolledPanel): 
    4647    """ 
    4748        Provides the Invariant GUI. 
     
    5455    CENTER_PANE = True 
    5556    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() 
    5759        #Font size  
    5860        self.SetWindowVariant(variant=FONT_VARIANT) 
     
    418420        self.button_details.Enable() 
    419421        self.button_details.SetFocus() 
    420      
     422        self.Layout() 
     423         
    421424    def reset_panel(self): 
    422425        """ 
     
    457460        #prepare a new container to put result of invariant 
    458461        self.inv_container = InvariantContainer() 
     462        self.Layout() 
    459463         
    460464    def _define_structure(self): 
     
    969973                                  wx.LEFT|wx.RIGHT|wx.BOTTOM, 10)]) 
    970974        self.SetSizer(self.main_sizer) 
    971         self.SetScrollbars(20,20,25,65) 
    972975        self.SetAutoLayout(True) 
    973976     
Note: See TracChangeset for help on using the changeset viewer.