Changeset e2f1023 in sasview


Ignore:
Timestamp:
Feb 22, 2010 8:53:08 AM (15 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:
a3498fa
Parents:
e847a42
Message:

hide the close button for the last page

File:
1 edited

Legend:

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

    rd361b462 re2f1023  
     1 
     2import numpy 
     3import string  
    14import wx 
    25import wx.aui 
    36import wx.lib 
    4 import numpy 
    5 import string  
     7import wx.lib.agw.aui.auibook as agw_aui 
    68 
    79 
     
    122124        self.window_caption = "Page" 
    123125     
    124 class FitPanel(wx.aui.AuiNotebook):     
     126class FitPanel(agw_aui.AuiNotebook):     
    125127 
    126128    """ 
     
    137139     
    138140    def __init__(self, parent, *args, **kwargs): 
    139         wx.aui.AuiNotebook.__init__(self,parent,-1, 
    140                     style= wx.aui.AUI_NB_WINDOWLIST_BUTTON| 
    141                     wx.aui.AUI_NB_DEFAULT_STYLE| 
    142                     wx.CLIP_CHILDREN) 
     141        agw_aui.AuiNotebook.__init__(self,parent,-1, 
     142                    style= agw_aui.AUI_NB_WINDOWLIST_BUTTON| 
     143                    agw_aui.AUI_NB_DEFAULT_STYLE| 
     144                    wx.CLIP_CHILDREN| 
     145                    agw_aui.AUI_NB_HIDE_ON_SINGLE_TAB) 
    143146     
    144147        self.manager=None 
     
    146149        self.event_owner=None 
    147150         
    148         pageClosedEvent = wx.aui.EVT_AUINOTEBOOK_PAGE_CLOSE 
    149         self.Bind(wx.aui.EVT_AUINOTEBOOK_PAGE_CLOSE, self.onClosePage) 
     151        pageClosedEvent = agw_aui.EVT_AUINOTEBOOK_PAGE_CLOSE 
     152        self.Bind(agw_aui.EVT_AUINOTEBOOK_PAGE_CLOSE, self.onClosePage) 
    150153        
    151154        #dictionary of miodel {model class name, model class} 
Note: See TracChangeset for help on using the changeset viewer.