window.destroy() to terminate application.run( ) loop

Herb Johnson <[email protected]> Wed, 2 Apr 2003 00:28:51 -0500 (EST)
Newsgroups gmane.comp.python.anygui.general
Message-ID <[email protected]>
I'm also running anygui 0.1.1 under Win32 (win98), under Python 2.2
and the 0.8 Idle IDE. WHen running anygui apps under Idle, when
the app "completes" control does not return to Idle and restores
the Idle "prompt". Instead text entry is permitted in the Idle
window, the Idle pull-down menus function. Attempts to exit
Idle result in no change to that condition. In fact I have to
use the Close Program window TWICE to terminate the Idle/Python
task.

I've read in the tutorial about use of ANYGUI_FORCE_CURSES, but
setting that variable to a text string (which should be interpreted
as "true") does not change the behaviour described. Closing all the
windows opened by the anygui app has no effect. And I'm too new
a Python programmer to use the "try/except SystemExit hack" mentioned
in a previous reply.

In short, what is necessary to use anygui in the win32/idle environment,
as opposed to the DOS command line?

Also, testbackend.py produces many "hello world" strings and multiple
buttons under Idle, and exhibits the same behavior as described above.It
indicates the current backend is "tk" (tkgui).

Herb Johnson



-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb: 
Dedicated Hosting for just $79/mo with 500 GB of bandwidth! 
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/