Phoenix and IntCtrl

Hi all,
Is wx.lib.intctrl supposed to work on Phoenix? I'm getting the following error when importing it:

   File "C:\Python34\lib\site-packages\wx\lib\intctrl.py", line 46, in <module>
     from sys import maxint
ImportError: cannot import name 'maxint'

I'll get around it for now by setting maxint in the file, but obviously it would be nice if I'm just missing something, and pip will solve all.

Cheers,

Hi Chris,

Hi all,
Is wx.lib.intctrl supposed to work on Phoenix? I'm getting the following error when importing it:

  File "C:\Python34\lib\site-packages\wx\lib\intctrl.py", line 46, in <module>
    from sys import maxint
ImportError: cannot import name 'maxint'

I'll get around it for now by setting maxint in the file, but obviously it would be nice if I'm just missing something, and pip will solve all.

It looks like it is just ported to Phoenix, no tests, no Py3 fixes and doc is not yet done either.

I hoped I could just use six.MAXSIZE (instead of maxint) but there are a few other issues with it for Py3+.

I try and find some time to work on it and create a PR, unless you beat me to it:)

Werner

···

On 7/23/2015 10:08, 'Chris Norman' via wxPython-users wrote:

Hi,

Take care,

Chris Norman

chris.norman2@googlemail.com

Hi Chris,

Hi all,
Is wx.lib.intctrl supposed to work on Phoenix? I’m getting the following error when importing it:

File “C:\Python34\lib\site-packages\wx\lib\intctrl.py”, line 46, in
from sys import maxint
ImportError: cannot import name ‘maxint’

I’ll get around it for now by setting maxint in the file, but obviously it would be nice if I’m just missing something, and pip will solve all.
It looks like it is just ported to Phoenix, no tests, no Py3 fixes and doc is not yet done either.

I hoped I could just use six.MAXSIZE (instead of maxint) but there are a few other issues with it for Py3+.

I try and find some time to work on it and create a PR, unless you beat me to it:)

If I knew what a PR was, I would be glad too… I’m happy to fix it up though.

···

On 23 Jul 2015, at 09:41, Werner wernerfbd@gmx.ch wrote:
On 7/23/2015 10:08, ‘Chris Norman’ via wxPython-users wrote:

Werner


You received this message because you are subscribed to the Google Groups “wxPython-users” group.
To unsubscribe from this group and stop receiving emails from it, send an email to wxpython-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Hi Chris,

...

If I knew what a PR was, I would be glad too... I'm happy to fix it up though.

http://wiki.wxpython.org/ContributeWithGIT

Werner

···

On 7/23/2015 10:46, 'Chris Norman' via wxPython-users wrote:

Hi Chris,

I managed to make the changes to IntCtrl, the PR is here:
https://github.com/wxWidgets/Phoenix/pull/25

Werner