[Anygui-users] window.destroy() to terminate application.run( ) loop
Brought to you by:
mlh
From: Herb J. <hjo...@pl...> - 2003-04-02 06:21:45
|
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 |