Changeset 193416e in sasview


Ignore:
Timestamp:
Feb 2, 2011 2:16:10 PM (14 years ago)
Author:
Gervaise Alina <gervyh@…>
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:
1767884
Parents:
36fac82
Message:

move code for sansview size to guiframe

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sansview/sansview.py

    r0912feab r193416e  
    3131APP_HEIGHT = 800 
    3232APP_WIDTH  = 1000 
    33 GSTYLE = GUIFRAME.MULTIPLE_APPLICATIONS 
     33GSTYLE = GUIFRAME.MULTIPLE_APPLICATIONS|GUIFRAME.TOOL_ON 
     34 
    3435class SansViewApp(gui_manager.ViewApp): 
    3536    """ 
    3637    """ 
    37     def OnInit(self): 
    38         """ 
    39         """ 
    40         screen_size = wx.GetDisplaySize() 
    41         app_height = APP_HEIGHT if screen_size[1]>APP_HEIGHT else screen_size[1]-50 
    42         app_width  = APP_WIDTH if screen_size[0]>APP_WIDTH else screen_size[0]-50 
    43  
    44         self.frame = gui_manager.ViewerFrame(None, -1,  
    45                                              local_config.__appname__,  
    46                                              gui_style=GSTYLE, 
    47                                              window_height=app_height,  
    48                                              window_width=app_width)     
    49         self.frame.Show(True) 
    50  
    51         if hasattr(self.frame, 'special'): 
    52             self.frame.special.SetCurrent() 
    53         self.SetTopWindow(self.frame) 
    54         return True 
     38    SIZE = (APP_WIDTH, APP_HEIGHT) 
     39    TITLE = local_config.__appname__ 
     40    PROG_SPLASH_PATH = os.path.join("images","SVwelcome.png") 
     41    STYLE = GSTYLE 
    5542 
    5643class SansView(): 
Note: See TracChangeset for help on using the changeset viewer.