Fun with Cairo-perl
December 23, 2005 on 6:28 pm | In Hacking, Perl |
Just a little fun with the Cairo Perl bindings. The code is courtesy of the gtkmm tutorial, and can be found here.
3 Comments »
RSS feed for comments on this post. TrackBack URI
Leave a comment
Powered by WordPress with Pool theme design by Borja Fernandez.
Entries and comments feeds.
Valid XHTML and CSS. ^Top^
Here you are the Python version: http://www.oluyede.org/files/cairo_clock/clock.py
Comment by Lawrence Oluyede — Friday, December 23 2005 #
The python version might add its timeout to __init__ instead of expose.
At least for me this stops the script to become quite cpu intensive.
Comment by Andreas Köhler — Saturday, December 24 2005 #
the python version has an error, since it adds the timeout at every expose event, while the perl version adds it only if it’s not already set (
$self->{timeout} = Glib::Timeout->add(...) unless $self->{timeout}).Comment by zefram — Saturday, December 24 2005 #