Changeset 7267776a in sasview for sansguiframe


Ignore:
Timestamp:
Apr 21, 2013 12:43:30 AM (12 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:
e173956
Parents:
ba152f1
Message:

toolbar fix II for mac

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sansguiframe/src/sans/guiframe/gui_manager.py

    rba152f1 r7267776a  
    194194TIME_FACTOR = 2 
    195195NOT_SO_GRAPH_LIST = ["BoxSum"] 
     196PARENT_STYLE = wx.DEFAULT_FRAME_STYLE 
    196197if sys.platform.count("darwin") > 0: 
    197198    IS_WIN = False 
    198199    TIME_FACTOR = 2 
     200    PARENT_STYLE = wx.DEFAULT_FRAME_STYLE | wx.STAY_ON_TOP 
    199201    if int(str(wx.__version__).split('.')[0]) == 2: 
    200202        if int(str(wx.__version__).split('.')[1]) < 9: 
     
    209211                 size=(GUIFRAME_WIDTH, GUIFRAME_HEIGHT), 
    210212                 gui_style=DEFAULT_STYLE,  
    211                  style=wx.DEFAULT_FRAME_STYLE, 
     213                 style=PARENT_STYLE, 
    212214                 pos=wx.DefaultPosition): 
    213215        """ 
     
    10531055                                  Hide())         
    10541056                """ 
     1057            if not IS_WIN: 
     1058                x_pos, _ = frame.GetPositionTuple() 
     1059                _, y_size = self.GetSizeTuple() 
     1060                frame.SetPosition((x_pos, y_size)) 
    10551061        #if frame != None: 
    10561062        #    frame.EnableCloseButton(False) 
     1063        if not IS_WIN: 
     1064            self.SetSize((self._window_width, 5)) 
    10571065         
    10581066    def update_data(self, prev_data, new_data): 
     
    34203428                posX = (displayWidth - customWidth)/2 
    34213429                posY = (displayHeight - customHeight)/2 
    3422         else: 
    3423             customHeight = 80 
    3424             is_maximized = False 
    34253430        # Return the suggested position and size for the application frame.     
    34263431        return (posX, posY), (customWidth, customHeight), is_maximized 
Note: See TracChangeset for help on using the changeset viewer.