Changeset 16bf519 in sasview


Ignore:
Timestamp:
Feb 10, 2009 1:00:50 PM (15 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:
07aeb8a
Parents:
2268d10
Message:

resizing the frame to allow data2D plot to be seen completely

File:
1 edited

Legend:

Unmodified
Added
Removed
  • guiframe/gui_manager.py

    r97f0c39b r16bf519  
    174174        Main application frame 
    175175    """ 
    176     def __init__(self, parent, id, title, window_height=800, window_width=800): 
     176    def __init__(self, parent, id, title, window_height=700, window_width=900): 
     177    #def __init__(self, parent, id, title, window_height=800, window_width=800): 
    177178        """ 
    178179            Initialize the Frame object 
    179180        """ 
    180181        from local_perspectives.plotting import plotting 
    181         wx.Frame.__init__(self, parent, id, title, wx.DefaultPosition, size=(800, 700)) 
     182        #wx.Frame.__init__(self, parent, id, title, wx.DefaultPosition, size=(800, 700)) 
     183        wx.Frame.__init__(self, parent, id, title, wx.DefaultPosition, size=(900, 600)) 
    182184         
    183185        # Preferred window size 
     
    387389                                          Name(p.window_name).Caption(p.window_caption). 
    388390                                          CenterPane(). 
    389                                           BestSize(wx.Size(500,500)). 
    390                                           MinSize(wx.Size(200,200)). 
     391                                          BestSize(wx.Size(600,600)). 
     392                                          MinSize(wx.Size(400,400)). 
     393                                          #BestSize(wx.Size(500,500)). 
     394                                          #MinSize(wx.Size(200,200)). 
    391395                                          Hide()) 
    392396                 
     
    406410                                  Hide(). 
    407411                                  #Show(). 
    408                                   BestSize(wx.Size(400,400)). 
    409                                   MinSize(wx.Size(300,300))) 
     412                                  BestSize(wx.Size(600,600)). 
     413                                  MinSize(wx.Size(500,500))) 
     414                                  #BestSize(wx.Size(400,400)). 
     415                                  #MinSize(wx.Size(300,300))) 
    410416 
    411417                 
     
    438444            if self.panels[item].window_name.startswith(p.window_name):  
    439445                count += 1 
    440                 """ 
    441         if p.window_name =="Analytical model 2D ": 
    442             print "guiframe 2D id",ID, p.window_name 
    443             event = Model2DPanelEvent(id= ID, pname=p.window_name) 
    444             for plug in self.plugins: 
    445                 if hasattr(plug, fitpanel) 
    446                 wx.PostEvent(plug, event) 
    447          """    
     446         
    448447        windowname = p.window_name 
    449448        caption = p.window_caption 
     449         
    450450        if count>0: 
    451451            windowname += str(count+1) 
    452452            caption += (' '+str(count)) 
    453              
     453           
    454454        p.window_name = windowname 
    455455        p.window_caption = caption 
     
    468468                          #Hide(). 
    469469                          #Show(). 
    470                           BestSize(wx.Size(400,400)). 
    471                           MinSize(wx.Size(350,350))) 
     470                          BestSize(wx.Size(600,600)). 
     471                          MinSize(wx.Size(500,500))) 
     472                          #BestSize(wx.Size(400,400)). 
     473                          #MinSize(wx.Size(350,350))) 
    472474        pane = self._mgr.GetPane(windowname) 
     475        print "guiframe pane", pane 
    473476        self._mgr.MaximizePane(pane) 
    474477        self._mgr.RestoreMaximizedPane() 
Note: See TracChangeset for help on using the changeset viewer.