Fwd: [pygtk] Disable/enable window close button
Packo
packo at assamita.net
Wed Jun 25 23:41:49 WST 2008
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=F3:
> oops... wrong button, reply-all is better :)
>
> On Wed, Jun 25, 2008 at 4:20 PM, Fr=E9d=E9ric
> <frederic.mantegazza en gbiloba.org> 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 en 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: packo en assamita.net =
|openwengo: wengo en assamita.net
------------ pr=F3xima parte ------------
Se ha borrado un adjunto en formato HTML...
URL: http://www.daa.com.au/pipermail/pygtk/attachments/20080625/91cd5f95/at=
tachment.htm
More information about the pygtk
mailing list