Changeset 0912feab in sasview


Ignore:
Timestamp:
Jan 25, 2011 7:46:47 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:
7a67e075
Parents:
52b8b74
Message:

working on guiframe

Location:
sansview
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sansview/perspectives/fitting/fitting.py

    rc26a64b r0912feab  
    257257        loader.associate_file_reader(".fitv", self.state_reader) 
    258258        loader.associate_file_reader(".svs", self.state_reader) 
    259  
     259        from sans.perspectives.calculator.sld_panel import SldPanel 
    260260        #Send the fitting panel to guiframe 
    261         self.mypanels.append(self.fit_panel) 
     261        self.mypanels.append(self.fit_panel)  
     262        self.mypanels.append(SldPanel(parent=self.parent, base=self.parent)) 
    262263        return self.mypanels 
    263264     
  • sansview/sansview.py

    r3658abed r0912feab  
    2222 
    2323from sans.guiframe import gui_manager 
     24from sans.guiframe.gui_style import GUIFRAME 
    2425from welcome_panel import WelcomePanel 
    2526# For py2exe, import config here 
     
    3031APP_HEIGHT = 800 
    3132APP_WIDTH  = 1000 
    32  
     33GSTYLE = GUIFRAME.MULTIPLE_APPLICATIONS 
    3334class SansViewApp(gui_manager.ViewApp): 
    3435    """ 
     
    4142        app_width  = APP_WIDTH if screen_size[0]>APP_WIDTH else screen_size[0]-50 
    4243 
    43         self.frame = gui_manager.ViewerFrame(None, -1, local_config.__appname__,  
    44                              window_height=app_height, window_width=app_width)     
     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)     
    4549        self.frame.Show(True) 
    4650 
Note: See TracChangeset for help on using the changeset viewer.