Changeset c9454bb in sasview
- Timestamp:
- Jun 20, 2009 6:51:54 PM (16 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
guiframe/gui_manager.py
ra88ac04 rc9454bb 177 177 Main application frame 178 178 """ 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): 181 180 """ 182 181 Initialize the Frame object 183 182 """ 184 183 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)) 188 185 # Preferred window size 189 186 self._window_height = window_height … … 254 251 self._setup_menus() 255 252 256 self.Fit()253 #self.Fit() 257 254 258 255 #self._check_update(None) … … 269 266 # Add panel 270 267 self._mgr = wx.aui.AuiManager(self) 268 self._mgr.SetDockSizeConstraint(0.5, 0.5) 271 269 272 270 # Load panels … … 367 365 # Show a default panel with some help information 368 366 # It also sets the size of the application windows 367 #TODO: Use this for slpash screen 369 368 self.panels["default"] = self.defaultPanel 370 369 … … 374 373 # This is where we set the size of the application window 375 374 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)). 377 376 Show()) 378 377 … … 391 390 Name(p.window_name).Caption(p.window_caption). 392 391 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)). 395 394 Hide()) 396 395 else: … … 405 404 RightDockable(). 406 405 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))) 410 409 411 410 … … 461 460 #Hide(). 462 461 #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))) 465 467 #BestSize(wx.Size(400,400)). 466 468 #MinSize(wx.Size(350,350))) … … 873 875 874 876 if hasattr(self.frame, 'special'): 875 print "Special?", self.frame.special.__class__.__name__876 877 self.frame.special.SetCurrent() 877 878 self.SetTopWindow(self.frame)
Note: See TracChangeset
for help on using the changeset viewer.