Author: bugman Date: Tue Jan 20 15:04:18 2015 New Revision: 27241 URL: http://svn.gna.org/viewcvs/relax?rev=27241&view=rev Log: Added a RelaxWarning printout to the dep_check module if wxPython 2.8 or less is encountered. This follows from http://thread.gmane.org/gmane.science.nmr.relax.devel/7502. The warning text is simply written to STDERR as relax starts. Modified: trunk/dep_check.py Modified: trunk/dep_check.py URL: http://svn.gna.org/viewcvs/relax/trunk/dep_check.py?rev=27241&r1=27240&r2=27241&view=diff ============================================================================== --- trunk/dep_check.py (original) +++ trunk/dep_check.py Tue Jan 20 15:04:18 2015 @@ -1,6 +1,6 @@ ############################################################################### # # -# Copyright (C) 2008-2014 Edward d'Auvergne # +# Copyright (C) 2008-2015 Edward d'Auvergne # # Copyright (C) 2014 Troels E. Linnet # # # # This file is part of the program relax (http://www.nmr-relax.com). # @@ -107,6 +107,9 @@ try: import wx wx_module = True + wx_version = wx.version().split()[0] + if version_comparison(wx_version, '2.9') == -1: + sys.stderr.write("RelaxWarning: Version %s of wxPython dependency is too old and buggy, version 2.9 or higher is required otherwise the GUI may be unstable.\n" % wx_version) except ImportError: wx_module = False message = sys.exc_info()[1]