Changeset 0fdcd1e in sasview for prview


Ignore:
Timestamp:
Jun 20, 2009 6:58:05 PM (15 years ago)
Author:
Mathieu Doucet <doucetm@…>
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:
0ccd214
Parents:
c9454bb
Message:

prview: changed size of application window

File:
1 edited

Legend:

Unmodified
Added
Removed
  • prview/sansview.py

    r0a0624f r0fdcd1e  
    55# For py2exe, import config here 
    66import local_config 
     7import sys 
    78from perspectives.pr.pr import NewPrFileEvent 
    89 
    9 # OS-dependent preferred height 
    10 #TODO: refactor this 
    11 _DEFAULT_HEIGHT=650 
    12 import sys 
    13 if sys.platform.count("darwin")>0: 
    14         _DEFAULT_HEIGHT=720 
     10# Application dimensions 
     11APP_HEIGHT = 780 
     12APP_WIDTH  = 850 
    1513 
    1614class PrFrame(gui_manager.ViewerFrame): 
     
    2220        #from gui_manager import ViewerFrame 
    2321        self.frame = PrFrame(None, -1, local_config.__appname__,  
    24                              window_height=_DEFAULT_HEIGHT, window_width=850)     
     22                             window_height=APP_HEIGHT, window_width=APP_WIDTH)     
    2523        self.frame.Show(True) 
    2624 
Note: See TracChangeset for help on using the changeset viewer.