Re: [Anygui-users] Re: Anygui-users digest, Vol 1 #13 - 1 msg
Brought to you by:
mlh
|
From: Magnus L. H. <ma...@he...> - 2002-02-19 08:04:42
|
Aljosa Mohorovic <ma...@ya...>: > > i use linux, python 2.2, anygui 0.1.1., gtk backend i need to set > handler for button named "btn_quit" to close current window/app/? > i do "link(btn_quit, quit_anyapp)". i don't know what to write for > "def quit_anyapp" to close this app. how do i do this, what is to be > written? Ah. I see. I'm not sure how well this is supported at the moment, actually... But try to use the destroy() method of the window. That will close and deallocate the window (and remove it from the application). Actually, app.remove(win) ought to work as well (and is perhaps a more natural reverse of the app.add(win)). -- Magnus Lie Hetland The Anygui Project http://hetland.org http://anygui.org |