Changeset c9454bb in sasview for guiframe


Ignore:
Timestamp:
Jun 20, 2009 4:51:54 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:
0fdcd1e
Parents:
57acd41
Message:

guiframe: removed hard-coded window sizes from gui_manager

File:
1 edited

Legend:

Unmodified
Added
Removed
  • guiframe/gui_manager.py

    ra88ac04 rc9454bb  
    177177        Main application frame 
    178178    """ 
    179     def __init__(self, parent, id, title, window_height=700, window_width=1000): 
    180     #def __init__(self, parent, id, title, window_height=800, window_width=800): 
     179    def __init__(self, parent, id, title, window_height=300, window_width=300): 
    181180        """ 
    182181            Initialize the Frame object 
    183182        """ 
    184183        from local_perspectives.plotting import plotting 
    185         #wx.Frame.__init__(self, parent, id, title, wx.DefaultPosition, size=(800, 700)) 
    186         wx.Frame.__init__(self, parent, id, title, wx.DefaultPosition, size=(1000, 600)) 
    187          
     184        wx.Frame.__init__(self, parent, id, title, wx.DefaultPosition, size=(window_width, window_height)) 
    188185        # Preferred window size 
    189186        self._window_height = window_height 
     
    254251        self._setup_menus() 
    255252         
    256         self.Fit() 
     253        #self.Fit() 
    257254         
    258255        #self._check_update(None) 
     
    269266        # Add panel 
    270267        self._mgr = wx.aui.AuiManager(self) 
     268        self._mgr.SetDockSizeConstraint(0.5, 0.5)  
    271269         
    272270        # Load panels 
     
    367365        # Show a default panel with some help information 
    368366        # It also sets the size of the application windows 
     367        #TODO: Use this for slpash screen 
    369368        self.panels["default"] = self.defaultPanel 
    370369         
     
    374373                              # This is where we set the size of the application window 
    375374                              BestSize(wx.Size(self._window_width, self._window_height)). 
    376                               MinSize(wx.Size(self._window_width, self._window_height)). 
     375                              #MinSize(wx.Size(self._window_width, self._window_height)). 
    377376                              Show()) 
    378377      
     
    391390                                          Name(p.window_name).Caption(p.window_caption). 
    392391                                          CenterPane(). 
    393                                           BestSize(wx.Size(550,600)). 
    394                                           MinSize(wx.Size(500,500)). 
     392                                          #BestSize(wx.Size(550,600)). 
     393                                          #MinSize(wx.Size(500,500)). 
    395394                                          Hide()) 
    396395            else: 
     
    405404                                  RightDockable(). 
    406405                                  MinimizeButton(). 
    407                                   Hide(). 
    408                                   BestSize(wx.Size(550,600)). 
    409                                   MinSize(wx.Size(500,500)))                  
     406                                  Hide()) 
     407                                  #BestSize(wx.Size(550,600))) 
     408                                  #MinSize(wx.Size(500,500)))                  
    410409                 
    411410         
     
    461460                          #Hide(). 
    462461                          #Show(). 
    463                           BestSize(wx.Size(550,600)). 
    464                           MinSize(wx.Size(500,500))) 
     462                          Resizable(True). 
     463                          # Use a large best size to make sure the AUI manager 
     464                          # takes all the available space 
     465                          BestSize(wx.Size(1300,1300))) 
     466                          #MinSize(wx.Size(500,500))) 
    465467                          #BestSize(wx.Size(400,400)). 
    466468                          #MinSize(wx.Size(350,350))) 
     
    873875 
    874876        if hasattr(self.frame, 'special'): 
    875             print "Special?", self.frame.special.__class__.__name__ 
    876877            self.frame.special.SetCurrent() 
    877878        self.SetTopWindow(self.frame) 
Note: See TracChangeset for help on using the changeset viewer.