Pygtk: How to remove title bar from a window

2005-01-13 Thread Nick Atkins
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.

Thanks,

Nick.

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Pygtk: How to remove title bar from a window

2005-01-13 Thread Nick Atkins
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.

-- 
http://mail.python.org/mailman/listinfo/python-list