##// END OF EJS Templates
RF: Make version check a bit more robust
Paul McCarthy -
Show More
@@ -190,13 +190,14 b" if sys.platform == 'darwin':"
190 190 else:
191 191
192 192 # Get the major wx version number
193 if hasattr(wx, '__version__'):
194 major_version = wx.__version__[0]
195 else:
196 major_version = '3'
193 major_version = 3
194 try:
195 major_version = int(wx.__version__[0])
196 except Exception:
197 pass
197 198
198 199 # Use the phoenix hook for wxpython >= 4
199 if int(major_version) >= 4:
200 if major_version >= 4:
200 201 inputhook = inputhook_wxphoenix
201 202 else:
202 203 inputhook = inputhook_wx3
General Comments 0
You need to be logged in to leave comments. Login now