Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
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?
Replies are listed 'Best First'.
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 pondering the Monastery: (15)
As of 2015-07-29 22:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (269 votes), past polls