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