[pygtk] dialog minimize/maximize icons/buttons missing
Simon van der Linden
simon.vanderlinden at agora.eu.org
Wed Jun 3 16:07:21 WST 2009
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
More information about the pygtk
mailing list