[pygtk] Reload gtk.Image contents

Niklas Koep niklas.koep at gmail.com
Mon Jan 28 23:02:08 WST 2013


If you're updating your gtk.Image contents via its set_from_file() method
you don't need to request an update at all -- it happens automatically.
Generally speaking, however, gtk.Widget implements a queue_draw() method
which can be used to invalidate the entire visible area of a widget which
in turn causes it to be redrawn. For your use this doesn't seem to be
required though. Hope this helps.



2013/1/27 Daniil Baturin <daniil at baturin.org>

> Hi,
> What is the proper way to reload gtk.Image contents?
>
> I want to make a simple educational gnuplot frontend that would allow
> playing with parametric curve coefficients by using spin buttons,
> expressions with substituted constants will be passed to gnuplot and
> generated png displayed in a gtk.Image. But I'm not sure how to request
> update of displayed image if the image has changed.
>
>
> --
> #!/usr/bin/env perl
> @a=split(//, "daniil @ baturin  .  org" );# Daniil Baturin
> @b=split(//,q/Px%!+o0Q6lh*7dp$**. at 8#%|y{/);while($i<24){$_.=
> chr((ord(@b[$i])-ord(@a[$i])+**62)%94+32);$i++};print"$_\n"#
>
> ______________________________**_________________
> pygtk mailing list   pygtk at daa.com.au
> http://www.daa.com.au/mailman/**listinfo/pygtk<http://www.daa.com.au/mailman/listinfo/pygtk>
> Read the PyGTK FAQ: http://faq.pygtk.org/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.daa.com.au/pipermail/pygtk/attachments/20130128/fbb4612a/attachment.html>


More information about the pygtk mailing list