Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: gtk2-perl: how to update image widget from callback?

by Anonymous Monk
on Oct 01, 2012 at 12:07 UTC ( #996630=note: print w/ replies, xml ) Need Help??


in reply to gtk2-perl: how to update image widget from callback?

about how to do this in gtk2-perl

:) You should have searched on how to do it in Gtk2, then translate the code you find to perl :)

Gtk2 image site:perlmonks.org -> Gtk2 Simple Image Fade , Re^2: GTK2 - Load updated image file into a frame, Perl-Gtk2::How to set a window background image., Gtk2-thumbnail-previewer


Comment on Re: gtk2-perl: how to update image widget from callback?
Re^2: gtk2-perl: how to update image widget from callback?
by wdef2 (Acolyte) on Oct 01, 2012 at 12:22 UTC
    Oh great more possibly relevant code to wade through. I did google for C examples but not on Perlmonks. That's where I discovered that, in using Gtk2 in C, it seems you can just change the widget and call the the main loop again from the callback - how simple is that! - which does not work in Perl for me. Frankly I'm tired of looking which I why I'm posting, there isn't a single clear blog or doc explaining this in Perl-gtk2. And the gtk2-perl docs are mere type and arg expanders, look auto generated, and show few or no examples whatsoever. Time to move to another toolkit?
      http://www.perlmonks.org/?node_id=975036, which does not show a working solution, suggests this can be done by writing and updating a temp file and using a timeout to periodically clear and reload the image from there. Leaving aside the feeling that a temp file is a kludge, where does this timeout go? In or outside the main loop?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://996630]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (12)
As of 2014-08-22 08:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (150 votes), past polls