- Timestamp:
- Jun 13, 2009 8:53:28 AM (15 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:
- 009f827
- Parents:
- a00ee4c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
prview/perspectives/pr/explore_dialog.py
ra00ee4c r164c7d0 167 167 self._recalc() 168 168 # Graph the default output curve 169 self._ on_output_selected(None)169 self._plot_output() 170 170 171 171 class Event: … … 180 180 dmax = 0 181 181 182 def _get_values(self, event ):182 def _get_values(self, event=None): 183 183 """ 184 184 Invoked when the user changes a value of the form. … … 226 226 # otherwise return None 227 227 if flag: 228 event.Skip(True) 228 if event is not None: 229 event.Skip(True) 229 230 return content_event 230 231 else: … … 277 278 sizer_params.Add(self.npts_ctl, (iy,ix), (1,1), wx.EXPAND|wx.ADJUST_MINSIZE, 0) 278 279 self.npts_ctl.SetValue("%g" % DEFAULT_NPTS) 279 self.npts_ctl.Bind(wx.EVT_KILL_FOCUS, self._ onTextEnter)280 self.npts_ctl.Bind(wx.EVT_KILL_FOCUS, self._recalc) 280 281 281 282 ix += 1 … … 285 286 sizer_params.Add(self.dmin_ctl, (iy,ix), (1,1), wx.EXPAND|wx.ADJUST_MINSIZE, 0) 286 287 self.dmin_ctl.SetValue(str(self._default_min)) 287 self.dmin_ctl.Bind(wx.EVT_KILL_FOCUS, self._ onTextEnter)288 self.dmin_ctl.Bind(wx.EVT_KILL_FOCUS, self._recalc) 288 289 289 290 ix += 1 … … 293 294 sizer_params.Add(self.dmax_ctl, (iy,ix), (1,1), wx.EXPAND|wx.ADJUST_MINSIZE, 0) 294 295 self.dmax_ctl.SetValue(str(self._default_max)) 295 self.dmax_ctl.Bind(wx.EVT_KILL_FOCUS, self._ onTextEnter)296 self.dmax_ctl.Bind(wx.EVT_KILL_FOCUS, self._recalc) 296 297 297 298 … … 320 321 sizer_button.Add((20, 20), 1, wx.EXPAND|wx.ADJUST_MINSIZE, 0) 321 322 button_OK = wx.Button(self, wx.ID_OK, "Close") 322 self.Bind(wx.EVT_BUTTON, self.checkValues, button_OK)323 323 sizer_button.Add(button_OK, 0, wx.LEFT|wx.RIGHT|wx.ADJUST_MINSIZE, 10) 324 324
Note: See TracChangeset
for help on using the changeset viewer.