Changeset 523f828 in sasview


Ignore:
Timestamp:
Apr 25, 2013 6:32:50 PM (11 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:
7c38c90
Parents:
d0923a3
Message:

adjusting panel positions:Linux

File:
1 edited

Legend:

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

    rd0923a3 r523f828  
    192192APPLICATION_WLIST = config.APPLICATION_WLIST 
    193193IS_WIN = True 
     194IS_LINUX = False 
    194195CLOSE_SHOW = True 
    195196TIME_FACTOR = 2 
     
    205206            CLOSE_SHOW = False 
    206207    if sys.platform.count("darwin") < 1: 
     208        IS_LINUX = True 
    207209        PARENT_FRAME = wx.Frame 
    208210        CHILD_FRAME = wx.Frame 
     
    989991        frame = self.defaultPanel.get_frame() 
    990992        frame.SetSize((self._window_width, self._window_height)) 
     993        size_t_bar = 70 
    991994        if not IS_WIN: 
    992995            x_pos, _ = frame.GetPositionTuple() 
    993             frame.SetPosition((x_pos, mac_pos_y + 70)) 
     996            if IS_LINUX: 
     997                size_t_bar = 115 
     998            frame.SetPosition((x_pos, mac_pos_y + size_t_bar)) 
    994999        frame.Show(True) 
    9951000        #add data panel  
     
    10121017        if not IS_WIN: 
    10131018            x_pos, _ = win.GetPositionTuple() 
    1014             win.SetPosition((x_pos, mac_pos_y + 70)) 
     1019            win.SetPosition((x_pos, mac_pos_y + size_t_bar)) 
    10151020        win.Show(flag) 
    10161021        d_panel_width = w 
     
    10391044            if not IS_WIN: 
    10401045                x_pos, _ = frame.GetPositionTuple() 
    1041                 frame.SetPosition((x_pos, mac_pos_y + 70)) 
     1046                frame.SetPosition((x_pos, mac_pos_y + size_t_bar)) 
    10421047 
    10431048        if not IS_WIN: 
    1044             self.SetSize((self._window_width, mac_pos_y)) 
     1049            win_height = mac_pos_y 
     1050            if IS_LINUX: 
     1051                win_height = mac_pos_y + 55 
     1052            self.SetSize((self._window_width, win_height)) 
    10451053         
    10461054    def update_data(self, prev_data, new_data): 
     
    30103018        size_y = 0 
    30113019        if self.GetToolBar() != None and self.GetToolBar().IsShown(): 
    3012             _, size_y = self.GetToolBar().GetSizeTuple() 
     3020            if not IS_LINUX: 
     3021                _, size_y = self.GetToolBar().GetSizeTuple() 
    30133022        return size_y 
    30143023     
Note: See TracChangeset for help on using the changeset viewer.