On Sat, 4 Nov 2000, janne halttunen wrote:
> Hi,
>
>
> > "Kohli, Ranjan" wrote:
> > > Is there anyway I can set up a GtkWindow so that I can prevent the user
> > > from hitting the dismiss window icon [X] in the window title bar ?
> > What do you mean by `prevent'. If you do not want your GtkWindow to
> > close when the user clicks on `dismiss window' then you don't connect
> > the window to the "destroy" signal. If you want a window border, then
> > try the following to create a window without *any* window management.
> > (Note: this is usually a Bad Thing as the user now cannot move,
> > destroy, or resize the window.)
> > w = GtkWindow(WINDOW_POPUP)
>
> I have a glade-file with multiple TOP_LEVEL windows in it. I'm using libglade
>to load them into my python-application. The windows seem to be destroyed even
> though the "destroy" signal isn't connected. When I try to show them again, an
>empty window appears with some gtk-warnings. These empty windows are
> indestructible. My purpose is to get the original windows only to hide when the 'X'
>is pressed, and later to be shown again. Any ideas/inspiration?
It should be sufficient to connect a handler to the delete_event signal
that will return TRUE:
def delete_event_handler(window, event):
return TRUE
James.
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk