Author: bugman Date: Fri Sep 6 09:56:50 2013 New Revision: 20871 URL: http://svn.gna.org/viewcvs/relax?rev=20871&view=rev Log: Modified the spectrum list GUI element action_relax_disp_spin_lock_field() method for the GUI tests. This now accepts the optional 'item' keyword argument like the other atcion_*() methods. Modified: branches/relax_disp/gui/components/spectrum.py Modified: branches/relax_disp/gui/components/spectrum.py URL: http://svn.gna.org/viewcvs/relax/branches/relax_disp/gui/components/spectrum.py?rev=20871&r1=20870&r2=20871&view=diff ============================================================================== --- branches/relax_disp/gui/components/spectrum.py (original) +++ branches/relax_disp/gui/components/spectrum.py Fri Sep 6 09:56:50 2013 @@ -163,15 +163,18 @@ uf_store['relax_disp.relax_time'](time=time, spectrum_id=id) - def action_relax_disp_spin_lock_field(self, event): + def action_relax_disp_spin_lock_field(self, event=None, item=None): """Launch the relax_disp.spin_lock_field user function. - @param event: The wx event. - @type event: wx event - """ - - # The current selection. - item = self.element.GetFirstSelected() + @keyword event: The wx event. + @type event: wx event + @keyword item: This is for debugging purposes only, to allow the GUI tests to select items without worrying about OS dependent wxPython bugs. + @type item: None or int + """ + + # The current selection. + if item == None: + item = self.element.GetFirstSelected() # The spectrum ID. id = gui_to_str(self.element.GetItemText(item))