[pygtk] Pixmap, DrawingArea, Viewport, Scrolledwindow
A.T.Hofkamp
a.t.hofkamp at tue.nl
Fri Aug 14 14:58:13 WST 2009
Nick Peters wrote:
> if response == gtk.RESPONSE_OK:
> print open_dialog.get_filename(), 'selected'
> #load the Image the user selected.
> rpg_map =
> gtk.gdk.pixbuf_new_from_file(open_dialog.get_filename())
I am missing the resize of the DrawingArea (self.area in my case):
self.area.set_size_request(rpg_map.get_width(),
rpg_map.get_height())
this notifies that the area has grown, and updates the scrollbars.
Albert
More information about the pygtk
mailing list