Changeset e86455b in sasview


Ignore:
Timestamp:
Apr 16, 2012 6:31:06 AM (13 years ago)
Author:
Robert Whitley <robert.whitley@…>
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:
1a7207b
Parents:
14d2daa
Message:

Refs #54. If the window fills more than 90% of the screen then reduce the window size to 90% of the screen.

File:
1 edited

Legend:

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

    r1e6d7290 re86455b  
    33003300        """ 
    33013301        """ 
    3302         pos, size = self.window_placement((GUIFRAME_WIDTH, GUIFRAME_HEIGHT)) 
     3302        global GUIFRAME_WIDTH, GUIFRAME_HEIGHT   
     3303         
     3304        if (GUIFRAME_WIDTH > ((wx.DisplaySize()[0]/100)*90) | GUIFRAME_HEIGHT > ((wx.DisplaySize()[1]/100)*90) ): 
     3305            GUIFRAME_WIDTH = (wx.DisplaySize()[0]/100)*90 
     3306            GUIFRAME_HEIGHT = (wx.DisplaySize()[1]/100)*90 
     3307 
     3308        pos, size = self.window_placement((GUIFRAME_WIDTH, GUIFRAME_HEIGHT))      
    33033309        self.frame = ViewerFrame(parent=None,  
    3304                                  title=APPLICATION_NAME,  
    3305                                  pos=pos,  
    3306                                  gui_style = DEFAULT_STYLE, 
    3307                                  size=size)  
     3310                             title=APPLICATION_NAME,  
     3311                             pos=pos,  
     3312                             gui_style = DEFAULT_STYLE, 
     3313                             size=size) 
    33083314        self.frame.Hide() 
    33093315        self.s_screen = None 
Note: See TracChangeset for help on using the changeset viewer.