Fun with Cairo-perl

December 23, 2005 on 6:28 pm | In Hacking, Perl |

cairo-perl clock

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

  1. Here you are the Python version: http://www.oluyede.org/files/cairo_clock/clock.py

    Comment by Lawrence Oluyede — Friday, December 23 2005 #

  2. 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 #

  3. 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 #

Leave a comment

XHTML: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>

I'll protect you: the considerable, far-famed, and titanic Hashcash?

Powered by WordPress with Pool theme design by Borja Fernandez.
Entries and comments feeds. Valid XHTML and CSS. ^Top^