<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=GB2312" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<font face="sans-serif">Thank god, finally someone cares this! Thank
you, Bruce!<br>
<br>
Let me explain that a little more.<br>
<br>
By "interactive session", I mean the session I get when I execute
'python' in a gnome shell. That works OK. I did not mean the one comes
with IDLE, which is not OK.<br>
<br>
Some days later after the last email I reported this, I found that
there is nothing to do with hitting RETURN after ")" in a function call
and it was not the 'File-&gt;Print Window' gets my keyboard back. <br>
<br>
Actually, it seems that every time I finish typing the ")" of
'somefunction(whatever)', I mean in IDLE shell, I lose focus to the
IDLE shell window. The window does looks like it is on focus, but
keyboard seems focusing on something else (the indicator still
blanking). Then all I have to do is to click anywhere on the IDLE menu
bar or to just simply switch windows back and forth with ALT+TAB to
re-focus on the IDLE window, and boom, I get the keyboard back. One
more RETURN afterwards gets the 'somefunction(whatever)' finally
called. And later on, if I type 'anotherfunction(with_or_without_arg)',
as soon as I finish typing the ")", I lose my keyboard reaction from
IDLE again!<br>
<br>
Really strange, isn't it?! Could it be a gnome problem? I've tried
several other editors, and this is only happening to IDLE.<br>
<br>
I asked this strange question on some forums like ubuntuforums.org, by
far I get no answer/solution but suggestions to use other python
editors like Geany. As I said, I'm a beginner of Python and I think
there must be some reason that IDLE comes with python on MS Windows.
I'd really like to stick on IDLE to make it more 'native' way. So
please, can some one help on this?<br>
<br>
If any other details are needed to help to address this problem, please
drop me an email. Thanks!<br>
<br>
</font>
<pre class="moz-signature" cols="72">Sincerely,

Ò¶ ·å|Crow Yeh(Ye Feng)
</pre>
<br>
<br>
Bruce Sherwood wrote:
<blockquote cite="mid:485C7F19.4070300@ncsu.edu" type="cite">
  <pre wrap="">I'm also running Ubuntu 8 with Python 2.5, and I don't see any of the
misbehavior that you see.

However, it's possible that I don't understand your comment, "Python
interactive session works OK as expected. It seems that only IDLE
doesn't like RETURN to be hit after the tailing "()" of functions."
First you say it works OK, then you say it doesn't work OK.

I have no idea what's wrong on your machine, but in the IDLE shell
window I can definitely execute the function calls that you are unable
to execute.

Bruce Sherwood


Ò¶ ·å|Crow Yeh(Ye Feng) wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">Hi,

I'm totally a beginner of python. I met some strange problem on using IDLE.

Python version is 2.5.2
IDLE version is 1.2.2
Ubuntu version: 8.04

All works fine except function invoking.
Say, the basic help() function, if I type in help(dir) and hit RETURN,
nothing happens, and the keyboard seems to be locked inside IDLE. I mean
no matter what I type afterwards, it looks like I typed nothing. The
pointer keeps flickering and IDLE just refuses to accept any further
keyboard input. The keyboard still functions well outside IDLE.
To see the feedback of help(dir), I have to invoke File-&gt;Print Window
(Yes the mouse still works fine inside IDLE), then I see the pointer
moves to the beginning of the next line, and now if I hit RETURN again,
it prints out the help info for "dir", and then my keyboard seems alive
inside IDLE again!

Python interactive session works OK as expected. It seems that only IDLE
doesn't like RETURN to be hit after the tailing "()" of functions. I've
tried several different function calls, same issue happens every time I
hit RETURN after typing in the function call (like
"somefunction(whatever)").

I've tried IDLE under Windows too, works fine. Ubuntu is main OS for me
to work on, and I don't want to switch to Windows for such a reason.
I've tried reinstalling IDLE with no luck. I also tried asking for help
in Ubuntu community like ubuntuforums.org, but all I get is suggestions
of trying out other python compatible IDEs insted of how to solve the
problem. And I get no confirm about the issue. So I don't even know if
it is some problem happens to me only.

Really strange, isn't it? Or am I missing something?

Please help. I'd really like to use IDLE as python IDE as I thought it
should be more native to python!

  
    </pre>
  </blockquote>
  <pre wrap=""><!---->

  </pre>
</blockquote>
</body>
</html>