Phoenix and IntCtrl

28 views
Skip to first unread message

Chris Norman

unread,
Jul 23, 2015, 4:08:21 AM7/23/15
to wxpytho...@googlegroups.com
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,

Werner

unread,
Jul 23, 2015, 4:41:23 AM7/23/15
to wxpytho...@googlegroups.com
Hi Chris,
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

Chris Norman

unread,
Jul 23, 2015, 4:46:19 AM7/23/15
to wxpytho...@googlegroups.com
Hi,

Take care,
Chris Norman



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

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-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Werner

unread,
Jul 23, 2015, 5:27:06 AM7/23/15
to wxpytho...@googlegroups.com
Hi Chris,

On 7/23/2015 10:46, 'Chris Norman' via wxPython-users wrote:
...
> 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

Werner

unread,
Jul 26, 2015, 5:57:51 AM7/26/15
to wxpytho...@googlegroups.com
Hi Chris,

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

Werner

Boštjan Mejak

unread,
Jul 26, 2015, 6:37:51 AM7/26/15
to wxPython Help

Werner, the sys.maxsize thing you changed is Python 2.6--3.x compatible. There's no need to use six.MAXSIZE. I don't think six.MAXSIZE stretches compatibility to Python earlier than 2.6. Anyone, correct me if I'm wrong.

Reply all
Reply to author
Forward
0 new messages