[pygtk] Pixmap, DrawingArea, Viewport, Scrolledwindow
Nick Peters
nick.peters at wcgwave.ca
Fri Aug 14 21:49:19 WST 2009
A.T.Hofkamp wrote:
> 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
>
Thanks very much! I remember reading about that method, however i
mistakenly thought it was for resizing the drawingarea! Thanks for the
clarification!
-Nick
More information about the pygtk
mailing list