wx.lib.intctrl.IntCtrl and Python3 (Phoenix)

Hello

I am trying to migrate to Python3.5 and Phoenix, and I have troubles
getting wx.lib.intctrl.IntCtrl to work.

It seems to rely on Python2 types:

$ python3.5
Python 3.5.1+ (default, Jan 13 2016, 15:09:18)
[GCC 5.3.1 20160101] on linux
Type "help", "copyright", "credits" or "license" for more information.

import wx.lib.intctrl

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/tmp/Phoenix/wx/lib/intctrl.py", line 46, in <module>
    from sys import maxint
ImportError: cannot import name 'maxint'

  
I am using Debian sid AMD64 with '3.0.3 gtk2 (phoenix)'.

Is there any Python3 compatible version of IntCtrl?

Martin

Hi Martin

There is a PR for it:

Werner

···

On 2/2/2016 0:21, Martin Manns wrote:

Hello

I am trying to migrate to Python3.5 and Phoenix, and I have troubles
getting wx.lib.intctrl.IntCtrl to work.

It seems to rely on Python2 types:

$ python3.5
Python 3.5.1+ (default, Jan 13 2016, 15:09:18)
[GCC 5.3.1 20160101] on linux
Type "help", "copyright", "credits" or "license" for more information.

import wx.lib.intctrl

Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
   File "/home/tmp/Phoenix/wx/lib/intctrl.py", line 46, in <module>
     from sys import maxint
ImportError: cannot import name 'maxint'

   

I am using Debian sid AMD64 with '3.0.3 gtk2 (phoenix)'.

Is there any Python3 compatible version of IntCtrl?

Martin