Changeset ca88b2e in sasview
- Timestamp:
- Feb 2, 2009 7:28:47 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:
- 6b44403
- Parents:
- 26bf293
- Location:
- guiframe
- Files:
-
- 5 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
guiframe/gui_manager.py
r0d9dae8 rca88b2e 36 36 37 37 from sans.guicomm.events import EVT_STATUS,Model2DPanelEvent 38 38 import history 39 39 import warnings 40 40 warnings.simplefilter("ignore") … … 220 220 ## Default welcome panel 221 221 self.defaultPanel = DefaultPanel(self, -1, style=wx.RAISED_BORDER) 222 222 223 # History panel 224 self.histPanel = history.HistoryPanel(self, style=wx.RAISED_BORDER) 223 225 # self.build_gui() 224 226 … … 347 349 # It also sets the size of the application windows 348 350 self.panels["default"] = self.defaultPanel 351 # History panel 352 self.panels["historyPanel"] = self.histPanel 353 349 354 self._mgr.AddPane(self.defaultPanel, wx.aui.AuiPaneInfo(). 350 355 Name("default"). … … 354 359 MinSize(wx.Size(self._window_width, self._window_height)). 355 360 Show()) 361 self._mgr.AddPane(self.histPanel, wx.aui.AuiPaneInfo(). 362 Name("historyPanel").Caption("History"). 363 #Float(). 364 Bottom(). 365 Dock(). 366 TopDockable(). 367 BottomDockable(). 368 LeftDockable(). 369 RightDockable(). 370 MinimizeButton(). 371 Hide(). 372 #Show(). 373 BestSize(wx.Size(500,600)). 374 MinSize(wx.Size(200,150))) 356 375 357 376 # Add the panels to the AUI manager … … 478 497 479 498 id = wx.NewId() 499 filemenu.Append(id, '&History', 'Register previous States') 500 wx.EVT_MENU(self, id, self._onHistoryPanel) 501 502 id = wx.NewId() 480 503 filemenu.Append(id,'&Quit', 'Exit') 481 504 wx.EVT_MENU(self, id, self.Close) … … 600 623 601 624 self._mgr.Update() 625 def _onHistoryPanel(self, event): 626 print "on history" 627 if not self._mgr.GetPane("historyPanel").IsShown(): 628 self._mgr.GetPane("historyPanel").Show() 629 self._mgr.Update() 630 return 602 631 603 632 def _on_open(self, event): -
guiframe/local_perspectives/plotting/AnnulusSlicer.py
r0d9dae8 rca88b2e 47 47 self.outer_circle = RingInteractor(self, self.base.subplot, zorder=zorder+1, r=self.qmax/1.8,sign=self.sign) 48 48 self.outer_circle.qmax = self.qmax*1.2 49 #self.outer_circle.set_cursor(self.base.qmax/1.8, 0) 50 51 49 52 50 self.update() 53 51 self._post_data()
Note: See TracChangeset
for help on using the changeset viewer.