Changeset 6d920cd in sasview for guiframe/gui_manager.py
- Timestamp:
- Feb 27, 2009 8:52:28 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:
- ed2ea6a
- Parents:
- 8dddbd4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
guiframe/gui_manager.py
r700f9b4 r6d920cd 35 35 import config 36 36 37 from sans.guicomm.events import EVT_STATUS ,Model2DPanelEvent37 from sans.guicomm.events import EVT_STATUS 38 38 from sans.guicomm.events import EVT_NEW_PLOT,EVT_SLICER_PARS_UPDATE 39 39 import history … … 224 224 self.defaultPanel = DefaultPanel(self, -1, style=wx.RAISED_BORDER) 225 225 226 # History panel227 #self.histPanel = history.HistoryPanel(self, style=wx.RAISED_BORDER)228 # self.build_gui()229 226 230 227 # Register the close event so it calls our own method … … 297 294 """ 298 295 import imp 299 print "Looking for plug-ins in %s" % dir296 #print "Looking for plug-ins in %s" % dir 300 297 # List of plug-in objects 301 298 … … 368 365 # It also sets the size of the application windows 369 366 self.panels["default"] = self.defaultPanel 370 # History panel371 #self.panels["historyPanel"] = self.histPanel372 367 373 368 self._mgr.AddPane(self.defaultPanel, wx.aui.AuiPaneInfo(). … … 378 373 MinSize(wx.Size(self._window_width, self._window_height)). 379 374 Show()) 380 """ 381 self._mgr.AddPane(self.histPanel, wx.aui.AuiPaneInfo(). 382 Name("historyPanel").Caption("History"). 383 #Float(). 384 Bottom(). 385 Dock(). 386 TopDockable(). 387 BottomDockable(). 388 LeftDockable(). 389 RightDockable(). 390 MinimizeButton(). 391 Hide(). 392 #Show(). 393 BestSize(wx.Size(500,600)). 394 MinSize(wx.Size(200,150))) 395 """ 375 396 376 397 377 # Add the panels to the AUI manager … … 410 390 BestSize(wx.Size(600,600)). 411 391 MinSize(wx.Size(400,400)). 412 #BestSize(wx.Size(500,500)).413 #MinSize(wx.Size(200,200)).414 392 Hide()) 415 393 … … 418 396 self._mgr.AddPane(p, wx.aui.AuiPaneInfo(). 419 397 Name(p.window_name).Caption(p.window_caption). 420 #Floatable().421 #Float().422 398 Right(). 423 399 Dock(). … … 428 404 MinimizeButton(). 429 405 Hide(). 430 #Show().431 406 BestSize(wx.Size(600,600)). 432 407 MinSize(wx.Size(500,500))) 433 #BestSize(wx.Size(400,400)). 434 #MinSize(wx.Size(300,300))) 408 435 409 436 410 … … 516 490 filemenu.Append(id, '&Open', 'Open a file') 517 491 wx.EVT_MENU(self, id, self._on_open) 518 519 #id = wx.NewId() 520 #filemenu.Append(id, '&History', 'Register previous States') 521 #wx.EVT_MENU(self, id, self._onHistoryPanel) 522 492 523 493 id = wx.NewId() 524 494 filemenu.Append(id,'&Quit', 'Exit') … … 652 622 653 623 self._mgr.Update() 654 """ 655 def _onHistoryPanel(self, event): 656 print "on history" 657 if not self._mgr.GetPane("historyPanel").IsShown(): 658 self._mgr.GetPane("historyPanel").Show() 659 self._mgr.Update() 660 return 661 """ 624 662 625 def _on_open(self, event): 663 626
Note: See TracChangeset
for help on using the changeset viewer.