Steven Howe wrote:
BUT gtk.gdk.Window.set_decorations does not appear to be an ancestor of
gtk.dialog. So how to I 'join' a gtk.dialog class with the
gtk.gdk.Window class, so I can access the lower level
'set_decorations()' function.

I haven't found a way to turn off the close window, so I'll have to
intercept it's event and return gtk.TRUE to turn it off.

Try the gtk.Window.set_decorated(setting) method. When setting is False, I get no decorations at all. Since gtk.Window is a subclass gtk.Dialog, there shouldn't be any problems with dialogs:


class gtk.Dialog(gtk.Window):
    gtk.Dialog(title=None, parent=None, flags=0, buttons=None)
    def add_action_widget(child, response_id)
    def add_button(button_text, response_id)
    def add_buttons(buttons)
    def set_response_sensitive(response_id, setting)
    def set_default_response(response_id)
    def set_has_separator(setting)
    def get_has_separator()
    def response(response_id)
    def run()

(see http://www.moeraki.com/pygtkreference/pygtk2reference/)

regards,

Toon

_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to