From 63722af78b9371f2129d2a7a040273f35baee388 Mon Sep 17 00:00:00 2001 From: Youness Alaoui Date: Thu, 29 Oct 2015 14:01:10 -0400 Subject: [PATCH] Check wxPython version and require a minimum version of 3.0 Fixes T270 and a whole bunch of other bugs such as T310 for example --- Cura/gui/app.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Cura/gui/app.py b/Cura/gui/app.py index 9e5e8de6..4aade333 100644 --- a/Cura/gui/app.py +++ b/Cura/gui/app.py @@ -114,9 +114,15 @@ class CuraApp(wx.App): from Cura.util import profile from Cura.util import resources from Cura.util import version + from distutils.version import LooseVersion resources.setupLocalization(profile.getPreference('language')) # it's important to set up localization at very beginning to install _ + if LooseVersion(wx.__version__) < LooseVersion('3.0'): + wx.MessageBox(_("This version of Cura requires WxPython version 3.0 or newer.\nYour current WxPython version is %s.") % wx.__version__, + _("WxPython version is too old"), wx.OK | wx.ICON_ERROR) + return + #If we do not have preferences yet, try to load it from a previous Cura install if profile.getMachineSetting('machine_type') == 'unknown': try: -- 2.30.2