[pygtk] dialog minimize/maximize icons/buttons missing

Laurent Luce laurentluce49 at yahoo.com
Thu Jun 4 01:08:02 WST 2009


I just tried set_resizable(True) on the dialog object and it doesn't do anything. I still don't see the minimize/maximize options.

Laurent Luce



----- Original Message ----
From: Simon van der Linden <simon.vanderlinden at agora.eu.org>
To: pygtk at daa.com.au
Sent: Wednesday, June 3, 2009 1:07:21 AM
Subject: Re: [pygtk] dialog minimize/maximize icons/buttons missing

On Tue, 2009-06-02 at 18:28 -0700, Laurent Luce wrote:
> I created a dialog with a scrolled window inside:
> 
> self.dialog = gtk.Dialog()
> self.dialog.set_title("Test")
> self.dialog.set_size_request(600, 300)
> 
> self.window = gtk.ScrolledWindow()
> self.window.set_border_width(10)
> self.window.set_policy(gtk.POLICY_AUTOMATIC, gtk.POLICY_ALWAYS)
> 
> self.dialog.vbox.pack_start(self.window, True, True, 0)
> 
> self.window.show()
> self.dialog.show_all()
> 
> The dialog shows up fine with the scrolled window inside. The issue is that I don't see the minimize/maximize icons at the top right corner of the dialog.

Usually, we don't need to resize or hide dialogs imho. But if you really
want to, you can set the "resizable" property to True and the buttons
you were looking for will notably appear:

self.dialog.set_resizable(True)

-- 
Simon van der Linden

_______________________________________________
pygtk mailing list  pygtk at daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/



More information about the pygtk mailing list