469,578 Members | 1,869 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,578 developers. It's quick & easy.

gtk.mainquit is deprecated

Hello,
(environment : python 2.4.2, pyGTK, GTK+ 2.6.9 under HPUX 11.11: unix)
On the instruction self.window.destroy(), I get the following
message :
lookup.py:121: GtkDeprecationWarning: gtk.mainquit is deprecated, use
gtk.main_quit instead
self.window.destroy()
But I don't want to quit the application, I need only to close the
window.
My application includes others places where "self.window.destroy()"
instruction is used and the execution is done without warning.
Very strange.
Thank you for your help

Feb 27 '07 #1
2 1711
Il 27 Feb 2007 01:56:33 -0800, awalter1 ha scritto:
But I don't want to quit the application, I need only to close the
window.
My application includes others places where "self.window.destroy()"
instruction is used and the execution is done without warning.
Very strange.
But does then the application end, as if gtk.main_quit() were called? If
it's the case, it's very likely you connected the 'destroy' signal on that
very window and you set gtk.mainquit() as the callback.

--
Alan Franzoni <al***************@gmail.com>
-
Togli .xyz dalla mia email per contattarmi.
Remove .xyz from my address in order to contact me.
-
GPG Key Fingerprint (Key ID = FE068F3E):
5C77 9DC3 BD5B 3A28 E7BC 921A 0255 42AA FE06 8F3E
Feb 27 '07 #2
Thank you
You're right. a connection was made between "destroy" and
gtk.main_quit (a bad cut and paste from an old application).

On 27 fév, 17:25, Alan Franzoni
<alan.franzoni_inva...@geemail.invalidwrote:
Il 27 Feb 2007 01:56:33 -0800, awalter1 ha scritto:
But I don't want to quit the application, I need only to close the
window.
My application includes others places where "self.window.destroy()"
instruction is used and the execution is done without warning.
Very strange.

But does then the application end, as if gtk.main_quit() were called? If
it's the case, it's very likely you connected the 'destroy' signal on that
very window and you set gtk.mainquit() as the callback.

--
Alan Franzoni <alan.franzoni....@gmail.com>
-
Togli .xyz dalla mia email per contattarmi.
Remove .xyz from my address in order to contact me.
-
GPG Key Fingerprint (Key ID = FE068F3E):
5C77 9DC3 BD5B 3A28 E7BC 921A 0255 42AA FE06 8F3E

Feb 28 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

8 posts views Thread by Uwe Mayer | last post: by
4 posts views Thread by Lieven | last post: by
45 posts views Thread by Matt Parkins | last post: by
9 posts views Thread by Robert | last post: by
3 posts views Thread by Ben Rush | last post: by
3 posts views Thread by Tony | last post: by
5 posts views Thread by Scirious | last post: by
reply views Thread by suresh191 | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.