- Timestamp:
- Apr 29, 2011 7:53:11 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:
- 0275276
- Parents:
- fcf072d
- Location:
- guiframe
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
guiframe/gui_manager.py
re7b6c9d rdee097b 1034 1034 1035 1035 """ 1036 self.show_panel(evt.GetId(), 'on') 1036 panel_id = str(evt.GetId()) 1037 self.on_set_plot_focus(self.panels[panel_id]) 1038 self.show_panel(evt.GetId(), 'on') 1037 1039 wx.CallLater(5, self.set_schedule(True)) 1040 self.set_plot_unfocus() 1038 1041 1039 1042 def on_close_welcome_panel(self): … … 2087 2090 Draw A panel in the full dwar list 2088 2091 """ 2089 # Check if the panel is shown 2090 if self._mgr.GetPane(panel.window_name).IsShown(): 2091 try: 2092 # This checking of GetCapture is to stop redrawing 2093 # while any panel is capture. 2094 if self.GetCapture() == None: 2095 # draw if possible 2096 panel.set_resizing(False) 2097 panel.draw_plot() 2098 except: 2099 pass 2092 try: 2093 # This checking of GetCapture is to stop redrawing 2094 # while any panel is capture. 2095 if self.GetCapture() == None: 2096 # draw if possible 2097 panel.set_resizing(False) 2098 panel.draw_plot() 2099 # Check if the panel is not shown 2100 if not self._mgr.GetPane(panel.window_name).IsShown(): 2101 self._mgr.GetPane(panel.window_name).Hide() 2102 except: 2103 pass 2100 2104 #print self.callback,self.schedule,self.schedule_full_draw_list 2101 2105 … … 2127 2131 Set focus on a plot panel 2128 2132 """ 2129 for plot in self.plot_panels.values(): 2130 # make sure we don't double focus 2131 if panel != plot: 2132 plot.on_kill_focus(None) 2133 2133 self.set_plot_unfocus() 2134 2134 panel.on_set_focus(None) 2135 2135 # set focusing panel … … 2137 2137 self.set_panel_on_focus(None) 2138 2138 2139 def set_plot_unfocus(self): 2140 """ 2141 Un focus all plot panels 2142 """ 2143 for plot in self.plot_panels.values(): 2144 plot.on_kill_focus(None) 2145 2139 2146 def _onDrawIdle(self, *args, **kwargs): 2140 2147 """ -
guiframe/local_perspectives/plotting/Plotter1D.py
rdf68da1 rdee097b 229 229 wx.PostEvent(self.parent, StatusEvent(status=position)) 230 230 231 self.on_set_focus(None)231 #self.on_set_focus(None) 232 232 #post nd event to notify guiframe that this panel is on focus 233 233 wx.PostEvent(self.parent, PanelOnFocusEvent(panel=self))
Note: See TracChangeset
for help on using the changeset viewer.