Pygtk: How to remove title bar from a window

Nick Atkins google-groups at
Thu Jan 13 19:51:37 EST 2005

Thanks for the reply Diez.

I'm not sure I can draw a border on its own with pyGTK but admittedly I
am not yet an expert.  I have the following minimal test program which
opens a window and I cannot get it to draw a window with no title bar,
just a border:

#!/usr/bin/env python
import pygtk
import gtk

if __name__ == "__main__":
# create a popup
w = gtk.Window()
w.set_size_request(100, 100)

I tried removing the set_decorated and set_has_frame lines and changing
them to True but I either get a complete title-bar window or nothing at

Any ideas?  Thanks.

More information about the Python-list mailing list