Author: bugman Date: Tue Nov 15 16:39:40 2016 New Revision: 28286 URL: http://svn.gna.org/viewcvs/relax?rev=28286&view=rev Log: Replacement of a wx.ListCtrl.DeleteAllColumns() function call from the spectrum GUI element.
This function does not exist in wxPython-Phoenix. Instead the columns are looped over and wx.ListCtrl.DeleteColumn() is called instead. Modified: trunk/gui/components/spectrum.py Modified: trunk/gui/components/spectrum.py URL: http://svn.gna.org/viewcvs/relax/trunk/gui/components/spectrum.py?rev=28286&r1=28285&r2=28286&view=diff ============================================================================== --- trunk/gui/components/spectrum.py (original) +++ trunk/gui/components/spectrum.py Tue Nov 15 16:39:40 2016 @@ -1,7 +1,7 @@ ############################################################################### # # # Copyright (C) 2009-2011 Michael Bieri # -# Copyright (C) 2010-2014 Edward d'Auvergne # +# Copyright (C) 2010-2016 Edward d'Auvergne # # # # This file is part of the program relax (http://www.nmr-relax.com). # # # @@ -784,7 +784,8 @@ # Delete the rows and columns. self.element.DeleteAllItems() - self.element.DeleteAllColumns() + for i in reversed(range(self.element.GetColumnCount())): + self.element.DeleteColumn(i) # Initialise to a single column. self.element.InsertColumn(0, str_to_gui("Spectrum ID")) _______________________________________________ relax (http://www.nmr-relax.com) This is the relax-commits mailing list relax-commits@gna.org To unsubscribe from this list, get a password reminder, or change your subscription options, visit the list information page at https://mail.gna.org/listinfo/relax-commits