[pygtk] Catching a window destroy event.

Paco Moreno packo at assamita.net
Thu Sep 29 07:56:29 WST 2005


El Martes 27 Septiembre 2005 01:37, Gian Mario Tagliaretti escribió:
> 2005/9/27, Gary Herron <gherron en islandtraining.com>:
> > I tried to catch the "destroy" event and just hide() the window, but it
> > still comes back empty.
>
> Try to catch the "delete-event" signal first, if you return True the
> window won't be destroyed.
>
> cheers
> --
> Gian Mario Tagliaretti
> PyGTK GUI programming
> http://www.parafernalia.org/pygtk/
> _______________________________________________
Thanks, I had the same problem.

-- 
...Deep Hack Mode -- that mysterious and frightening state of
consciousness where Mortal Users fear to tread.
	-- Matt Welsh
|Paco Moreno                         
|web: http://www.assamita.net       
|blog: http://blog.assamita.net
|correo: packo en assamita punto net 
|jabber: packo en jabber-hispano.org    
|skype:  Paco Moreno
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.2.5 (GNU/Linux)

mQGiBELCsD4RBAClXnpH6C7PbvowxwA2t2kEjJXhDtzVyVZuSEw6c/Pv7lOLLRZn
v19dlLdrS+6r7DnMD04kAngwz8Cyl/6THzE5oORORcbmqblpHtjuA3FGeviizDYS
AAGxNBDETRMNWW0ySZ7+TbIRoxWXKqR6mV6HMHHXgGrSHGRvns8gbliKWwCgzSRh
YrtTHS7YTZcqLSIFLtIfHtMD/iwr2lWsx+kIVWFxdMKr5aGkVvPEuvKYy5zb7SLU
e8ZS4yCQ0dqEDzAt51pZrlDNjz9uT5Ph82oeq3RwfE3dC8OCoAFMOo9gBgfN7vWX
BYxBH0/5AAPM0zXSONueOby/XaZCE8RvSgR8SFLB+PrTh2NbxU1x5hVpEJhmv9CF
qZulA/9cB5tucR6x1PpaHbbCADrW2I0k0iLsgZ9xBMzJAXd9TcVBPctsTKW6CBrm
6cuOlqm4KTXT7fVlnQlYO4VNNFL9dTsX6dAJh9zR2Dnjq/lzJDciEQ1lu71BckNR
qGNk0zDpEneEYLloUFgZ9LkXS23lbbU8en/vuVD86bZlIqpqabQgUGFjbyB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