Changeset f69b5830 in sasview
- Timestamp:
- Apr 11, 2011 4:04:21 PM (14 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:
- 0a2fdca
- Parents:
- 4d1dce4
- Location:
- guiframe
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
guiframe/gui_manager.py
r4d1dce4 rf69b5830 202 202 panel_name = 'No panel on focus' 203 203 application_name = 'No Selected Application' 204 if self.panel_on_focus is not None and self._data_panel is not None: 205 panel_name = self.panel_on_focus.window_caption 206 self._data_panel.set_panel_on_focus(panel_name) 207 #update toolbar 208 self._update_toolbar_helper() 209 #update edit menu 210 self.enable_edit_menu() 204 if self.panel_on_focus is not None: 205 for ID in self.panels.keys(): 206 if self.panel_on_focus != self.panels[ID]: 207 self.panels[ID].on_kill_focus(None) 208 209 if self._data_panel is not None: 210 panel_name = self.panel_on_focus.window_caption 211 self._data_panel.set_panel_on_focus(panel_name) 212 #update toolbar 213 self._update_toolbar_helper() 214 #update edit menu 215 self.enable_edit_menu() 211 216 212 217 def build_gui(self): … … 241 246 self.SetStatusBar(self.sb) 242 247 # Add panel 243 default_flag = wx.aui.AUI_MGR_DEFAULT | wx.aui.AUI_MGR_ALLOW_ACTIVE_PANE248 default_flag = wx.aui.AUI_MGR_DEFAULT#| wx.aui.AUI_MGR_ALLOW_ACTIVE_PANE 244 249 self._mgr = wx.aui.AuiManager(self, flags=default_flag) 245 250 self._mgr.SetDockSizeConstraint(0.5, 0.5) -
guiframe/local_perspectives/plotting/Plotter1D.py
r6d727ae rf69b5830 228 228 position = "x: %8.3g y: %8.3g" % (event.xdata, event.ydata) 229 229 wx.PostEvent(self.parent, StatusEvent(status=position)) 230 230 231 self.on_set_focus(None) 231 232 #post nd event to notify guiframe that this panel is on focus 232 233 wx.PostEvent(self.parent, PanelOnFocusEvent(panel=self)) -
guiframe/panel_base.py
r7bf9a8c rf69b5830 327 327 if self.parent is not None: 328 328 wx.PostEvent(self.parent, PanelOnFocusEvent(panel=self)) 329 329 330 def on_kill_focus(self, event=None): 331 """ 332 The derivative class is on unfocus if implemented 333 """ 334 pass 335 330 336 def get_data(self): 331 337 """
Note: See TracChangeset
for help on using the changeset viewer.