IDLE / Python 2.5 under Jaunty

D

duncan smith

A little off-topic perhaps, but I can't think of anywhere more likely to
contain people with answers.

I've just upgraded to Jaunty Jackalope where Python 2.6 is the default
Python version. I'm still developing under 2.5, but IDLE now refuses to
respond to left click events (for code editing, menus etc. respond as
expected). If I right click, then left click I can move the cursor, but
that's not ideal. I've tried SPE which is great, but I can't find a way
of configuring the Python version, so I'm stuck with a 2.6 shell.

I've had limited success with Boa Constructor (which defaulted to Python
2.6 and wxPython 2.6). By renaming a symlink
(/usr/lib/python2.5/site-packages/wx-2.6-gtk2-unicode.pth) I managed to
get the wx version for Python 2.5 to default to 2.8.9.1. I've pointed
Boa at 2.5 using the interpreter chooser, but the Boa frame designer
still appears to expect wxPython 2.6 (it finds "errors" in my code and
refuses to fire up).

So, has anybody else had the left click issue with IDLE (and solved it)?
Does anyone know how I can configure Boa to use wxPython 2.8.9.1? Does
anyone know if it's possible to configure the Python version under SPE?

Cheers.

Duncan
 
D

David Lyon

Does anyone know how I can configure Boa to use wxPython 2.8.9.1? Does
anyone know if it's possible to configure the Python version under SPE?

It definitely is possible. In fact you need to use wxpython 2.8 with Boa.

I had a similar problem under some ubuntu version. You can install 2.6 and
2.8 wxpython. But from memory there is a wxversion ubuntu package also.

I had to do some "force"ing as there seemed to be circular dependencies.

In the end I got it to work just fine...

David
 
L

Lie Ryan

duncan said:
I've just upgraded to Jaunty Jackalope where Python 2.6 is the default
Python version. I'm still developing under 2.5, but IDLE now refuses to
respond to left click events (for code editing, menus etc. respond as
expected). If I right click, then left click I can move the cursor, but
that's not ideal.

For the meantime, you should search/file a bug report on Launchpad
(Ubuntu's bugtracker) on: https://launchpad.net/ubuntu/ if you haven't
already done so.

I just tried idle 2.6 (python 2.6, Tk 8.4) on Gentoo, and left-clicking
seems to run fine (although I'm a bit unclear on what kinds of
left-clicking IDLE refuses to respond to).

On the reports to Launchpad, don't forget to include the versions of
python, idle, and Tk as reported on Help > About.
 
M

Michiel Overtoom

Duncan said:
> IDLE now refuses to
respond to left click events (for code editing, menus etc. respond as
expected). If I right click, then left click I can move the cursor, but
that's not ideal.
>
So, has anybody else had the left click issue with IDLE (and solved it)?

Irritating problem, isn't it? I experience the same on FreeBSD with Tk8.5.
I had to downgrade to Tk8.4, which has ugly fonts.

See http://bugs.python.org/issue2995

"Moving the mouse over the text widget changes the cursor to the I-beam
as expected, but click on text doesn't position the beam at the mouse
position. It is also impossible to select text with the mouse.
Selecting text with shift-arrow keys works, however."

It's closed because it doesn't seem related to Python.

Greetings,
 
D

duncan smith

Michiel said:
Irritating problem, isn't it? I experience the same on FreeBSD with Tk8.5.
I had to downgrade to Tk8.4, which has ugly fonts.

See http://bugs.python.org/issue2995

"Moving the mouse over the text widget changes the cursor to the I-beam
as expected, but click on text doesn't position the beam at the mouse
position. It is also impossible to select text with the mouse.
Selecting text with shift-arrow keys works, however."

It's closed because it doesn't seem related to Python.

Greetings,

Thanks for the responses. I searched far and wide, and couldn't find
anyone else having the same problem. I have Tk 8.4.19-2 and 8.5.6-3 on
this machine. I remember changing the font a while back (before
upgrading to Jaunty) because it was barely readable. I guess the issue
is with Tk 8.5.6-3. Just found I can move the cursor (by left clicking)
if I hold the control key down. Shift arrow keys works for selection.
Still not so good. Cheers.

Duncan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,059
Latest member
cryptoseoagencies

Latest Threads

Top