Changeset ba152f1 in sasview


Ignore:
Timestamp:
Apr 20, 2013 9:32:21 PM (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:
7267776a
Parents:
ae84427
Message:

main frame fix for mac I

File:
1 edited

Legend:

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

    rae84427 rba152f1  
    194194TIME_FACTOR = 2 
    195195NOT_SO_GRAPH_LIST = ["BoxSum"] 
    196 if sys.platform.count("win32")==0: 
     196if sys.platform.count("darwin") > 0: 
    197197    IS_WIN = False 
    198198    TIME_FACTOR = 2 
     
    10021002        self._data_panel = DataPanel(parent=win) 
    10031003        win.set_panel(self._data_panel) 
    1004         win.EnableCloseButton(False) 
    10051004        self.panels["data_panel"] = self._data_panel 
    10061005        self._data_panel.set_frame(win) 
     
    10101009        else: 
    10111010            flag = True 
     1011        self._data_panel.frame.EnableCloseButton(False) 
    10121012        win.Show(flag) 
    10131013        d_panel_width = w 
     
    32483248                             size=size) 
    32493249        self.frame.Hide() 
     3250        if not IS_WIN: 
     3251            self.frame.EnableCloseButton(False) 
    32503252        self.s_screen = None 
    32513253 
     
    34183420                posX = (displayWidth - customWidth)/2 
    34193421                posY = (displayHeight - customHeight)/2 
    3420          
     3422        else: 
     3423            customHeight = 80 
     3424            is_maximized = False 
    34213425        # Return the suggested position and size for the application frame.     
    34223426        return (posX, posY), (customWidth, customHeight), is_maximized 
Note: See TracChangeset for help on using the changeset viewer.