Pygtk: How to remove title bar from a window
Nick Atkins
google-groups at slippytoad.com
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
pygtk.require('2.0')
import gtk
if __name__ == "__main__":
# create a popup
w = gtk.Window()
w.set_size_request(100, 100)
w.set_decorated(False)
w.set_has_frame(False)
w.set_border_width(10)
w.show()
gtk.main()
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
all.
Any ideas? Thanks.
More information about the Python-list
mailing list