Changeset d5f0dcb9 in sasview


Ignore:
Timestamp:
Mar 2, 2010 11:27:37 AM (15 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:
53b6b74
Parents:
abf6771
Message:

Fixed "Can't click buttons & textctrls on MAC"

File:
1 edited

Legend:

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

    r272d91e rd5f0dcb9  
    266266        sizer2.SetMinSize((_STATICBOX_WIDTH, -1)) 
    267267        sizer3.SetMinSize((_STATICBOX_WIDTH, -1)) 
     268         
     269        ## Box sizers must be defined first before defining buttons/textctrls (MAC). 
     270        vbox  = wx.BoxSizer(wx.VERTICAL) 
     271        inputbox = wx.StaticBox(self, -1, "Input") 
     272        extrapolation_box = wx.StaticBox(self, -1, "Extrapolation") 
     273        boxsizer1 = wx.StaticBoxSizer(inputbox, wx.VERTICAL) 
     274        high_q_box = wx.StaticBox(self, -1, "High Q") 
     275        boxsizer_high_q = wx.StaticBoxSizer(high_q_box, wx.VERTICAL)    
     276        low_q_box = wx.StaticBox(self, -1, "Low Q") 
     277        boxsizer_low_q = wx.StaticBoxSizer(low_q_box, wx.VERTICAL) 
     278         
    268279        #---------inputs---------------- 
    269280        data_name = "" 
     
    394405        sizer_high_q.Add(self.enable_high_cbox,(iy, ix),(1,1), 
    395406                            wx.LEFT|wx.EXPAND|wx.ADJUST_MINSIZE, 15) 
    396          
    397         high_q_box = wx.StaticBox(self, -1, "High Q") 
    398         boxsizer_high_q = wx.StaticBoxSizer(high_q_box, wx.VERTICAL) 
    399         boxsizer_high_q.Add(sizer_high_q) 
    400          
    401         low_q_box = wx.StaticBox(self, -1, "Low Q") 
    402         boxsizer_low_q = wx.StaticBoxSizer(low_q_box, wx.VERTICAL) 
     407               
     408        boxsizer_high_q.Add(sizer_high_q)                
    403409        boxsizer_low_q.Add(sizer_low_q) 
    404410         
     
    431437        type_extrapolation_sizer.Add(boxsizer_high_q, 0, wx.ALL, 10) 
    432438        type_extrapolation_sizer.Add((10,10)) 
    433          
    434         extrapolation_box = wx.StaticBox(self, -1, "Extrapolation") 
     439                
    435440        boxsizer_extra = wx.StaticBoxSizer(extrapolation_box, wx.VERTICAL) 
    436441        boxsizer_extra.Add(enable_sizer, 0, wx.ALL, 10) 
    437442        boxsizer_extra.Add(type_extrapolation_sizer) 
    438      
    439         inputbox = wx.StaticBox(self, -1, "Input") 
    440         boxsizer1 = wx.StaticBoxSizer(inputbox, wx.VERTICAL) 
     443             
    441444        boxsizer1.SetMinSize((_STATICBOX_WIDTH,-1)) 
    442445        boxsizer1.Add(sizer_input) 
     
    594597        sizer3.Add(sizer_button) 
    595598        #---------layout---------------- 
    596         vbox  = wx.BoxSizer(wx.VERTICAL) 
     599         
    597600        vbox.Add(sizer1) 
    598601        vbox.Add(sizer2) 
Note: See TracChangeset for help on using the changeset viewer.