Untangling pythonWin and IDLE Processes on XP Pro
W. eWatson
notvalid2 at sbcglobal.net
Fri Feb 13 06:13:38 EST 2009
Terry Reedy wrote:
> W. eWatson wrote:
>> From Diez above.
>> What does *NOT* work is writing a Tkinter-based app in idle, and to
>> run it
>> *FROM INSIDE* idle. Instead, open your explorer and double-click on the
>> pyhton-file your app is in. That's all that there is to it.
>>
>> So this is the absolute truth? No wiggle room? One can never use a
>> Tkinter program with IDLE, and execute it successfully. So IDLE
>> doesn't issue a standard warning that says, "Get out of here with your
>> Tkinter program, it will fail when you try to run it here. You have
>> entered Tkinter hell. Good-bye."
>
> Re-read my post about kids fighting to control a television. Maybe they
> work together, maybe they crash the TV. Hard to predict.
>
> ***ANY*** Python program that tries to grab and control the same
> resources that TK does may conflict with it. There is no way that IDLE
> can have a list of, for instance, all event-grabbing mainloop programs.
>
OK, enough tinkering with the code and others matters on my end trying to
find a work around. Somehow after much successful use of IDLE's execution
facility, I've stepped on an invisible banana peel. I think it's evident
that I'm not going around this problem easily with the IDLE execution
attempts, and that another solution is required.
First, I think somewhere up the thread someone suggested that Active
pythonWin is not dependent upon Tk, correct? Therefore, it is immune from
such problems, correct?
Second, maybe I missed it above, but when I posted the output from the
program that showed the failure, was there anything that said, "IDLE
problem" or would even give a clue that's the culprit?
Finally, we can probably agree that I can continue to use IDLE for editing
and syntax checking, but to "guarantee" successful execution of the program,
I can just double-click on the py file in my folder. Perhaps there is a
better way than clicking on it in the folder. For example, putting it on the
desktop. As I look at the folder, previous copies only differ by a digit, I
can easily find myself executing an earlier version, differing as Dev4, to
Dev5 at the end of each name.
Let me ask this. When I install Active Python, am I getting something beyond
their interface? That is, does executing the code there result in using the
same python interpreter that is used by IDLE? My use of their editor has
been somewhat exasperating. It does not seem as friendly as the IDLE editor.
I still find it bizarre that the original creator of this program can spend
months using IDLE to develop this program, and that I've spent maybe 10 days
recently now adding to it without having much, if any, problem with IDLE and
the programs execution within IDLE. I asked him almost a year ago what tool
he used. IDLE, was the reply. Maybe it was really IDLE with no execution
from inside IDLE. I'll ask him.
--
W. eWatson
(121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
Obz Site: 39° 15' 7" N, 121° 2' 32" W, 2700 feet
Web Page: <www.speckledwithstars.net/>
More information about the Python-list
mailing list