Pygtk: How to remove title bar from a window

Diez B. Roggisch deetsNOSPAM at web.de
Thu Jan 13 18:43:26 EST 2005


Nick Atkins wrote:

> Hi all,
> 
> I am writing an application using pyGTK that has several pop-up dialogs
> that show and hide in succession.  I would like to prevent the user
> from closing the dialog   and if possible I'd like to use a "title
> bar-less" window with a normal border so the X is not even available to
> click.  Is this possible?  I have tried using
> window.set_decorated(FALSE) but this also removes the border making the
> window look quite strange.

Draw your own border then. And don't rely on the user not beeing able to
close the window - xkill is at hand, and even if the average user doesn't
know about it - it _will_ be used.
-- 
Regards,

Diez B. Roggisch



More information about the Python-list mailing list