http://www.perlmonks.org?node_id=996637


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

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?
  • Comment on Re^2: gtk2-perl: how to update image widget from callback?

Replies are listed 'Best First'.
Re^3: gtk2-perl: how to update image widget from callback?
by wdef2 (Acolyte) on Oct 01, 2012 at 12:42 UTC
    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?
        Yes http://www.perlmonks.org/?node_id=975049 looks like it might be what I'm looking for. Will try out and get back later.