Beefy Boxes and Bandwidth Generously Provided by pair Networks Frank
Syntactic Confectionery Delight
 
PerlMonks  

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

by wdef2 (Acolyte)
on Oct 01, 2012 at 12:22 UTC ( #996637=note: print w/ replies, xml ) Need Help??


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

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (7)
As of 2014-04-16 12:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (425 votes), past polls