Changeset 16bf519 in sasview
- Timestamp:
- Feb 10, 2009 1:00:50 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:
- 07aeb8a
- Parents:
- 2268d10
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
guiframe/gui_manager.py
r97f0c39b r16bf519 174 174 Main application frame 175 175 """ 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): 177 178 """ 178 179 Initialize the Frame object 179 180 """ 180 181 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)) 182 184 183 185 # Preferred window size … … 387 389 Name(p.window_name).Caption(p.window_caption). 388 390 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)). 391 395 Hide()) 392 396 … … 406 410 Hide(). 407 411 #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))) 410 416 411 417 … … 438 444 if self.panels[item].window_name.startswith(p.window_name): 439 445 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 448 447 windowname = p.window_name 449 448 caption = p.window_caption 449 450 450 if count>0: 451 451 windowname += str(count+1) 452 452 caption += (' '+str(count)) 453 453 454 454 p.window_name = windowname 455 455 p.window_caption = caption … … 468 468 #Hide(). 469 469 #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))) 472 474 pane = self._mgr.GetPane(windowname) 475 print "guiframe pane", pane 473 476 self._mgr.MaximizePane(pane) 474 477 self._mgr.RestoreMaximizedPane()
Note: See TracChangeset
for help on using the changeset viewer.