Changeset 57acd41 in sasview for sansview


Ignore:
Timestamp:
Jun 20, 2009 6:50:33 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:
c9454bb
Parents:
b81cf5c
Message:

sansview: added size parameters

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sansview/sansview.py

    re5c6fff r57acd41  
    77import logging 
    88 
     9# Application dimensions 
     10APP_HEIGHT = 800 
     11APP_WIDTH  = 1000 
     12 
     13class SansViewApp(gui_manager.ViewApp): 
     14    def OnInit(self): 
     15        #from gui_manager import ViewerFrame 
     16        self.frame = gui_manager.ViewerFrame(None, -1, local_config.__appname__,  
     17                             window_height=APP_HEIGHT, window_width=APP_WIDTH)     
     18        self.frame.Show(True) 
     19 
     20        if hasattr(self.frame, 'special'): 
     21            self.frame.special.SetCurrent() 
     22        self.SetTopWindow(self.frame) 
     23        return True 
    924 
    1025class SansView(): 
     
    1530        """ 
    1631        #from gui_manager import ViewApp 
    17         self.gui = gui_manager.ViewApp(0)  
     32        self.gui = SansViewApp(0)  
    1833         
    1934        # Add perspectives to the basic application 
Note: See TracChangeset for help on using the changeset viewer.