Ok, I know the behaviour of Windows with delete-event, I use it to manage the closing of windows, but my question, not the question of Frederic, is: can you hide the cross button in the window-manager with GTK when you want?

regards..

Gian Mario Tagliaretti escribió:
oops... wrong button, reply-all is better :)

On Wed, Jun 25, 2008 at 4:20 PM, Frédéric
<[EMAIL PROTECTED]> wrote:

It does not work...

It does work.

Returning True from "delete-event" stops the signal emission and the
windows stays open, you probably want to give the user another meaning
to close the window, like popping up a message dialog asking if they
really want to close or something like that. The Dialog widget works
in a slightly different way, depending if you use it modal or not
modal, see gtk.Dialog class in the reference manual for more details.

Also the Pygtk FAQ may help, IIRC there are examples on this subject.

cheers
--
Gian Mario Tagliaretti
_______________________________________________
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/


--
|Paco Moreno |web: http://www.assamita.net |blog: http://blog.assamita.net |correo: packo en assamita punto net |jabber: [EMAIL PROTECTED] |openwengo: [EMAIL PROTECTED]


_______________________________________________
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to