Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

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 -> 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?, 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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://996630]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (13)
As of 2016-12-05 16:17 GMT
Find Nodes?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:

    Results (88 votes). Check out past polls.