Unix time == 1111111111
- From: Grant McLean <grant mclean net nz>
- To: Gtk Perl List <gtk-perl-list gnome org>
- Subject: Unix time == 1111111111
- Date: Fri, 18 Mar 2005 10:52:56 +1300
Just so you don't miss it (only a few hours to go):
#!/usr/bin/perl
use strict;
use Gtk2 -init;
use Glib qw(TRUE FALSE);
my $window = Gtk2::Window->new;
$window->signal_connect(delete_event => sub { Gtk2->main_quit; });
my $label = Gtk2::Label->new('' . time());
my $font = Gtk2::Pango::FontDescription->from_string("Sans Bold 48");
$label->modify_font($font);
Glib::Timeout->add(250, sub { $label->set_text('' . time()); TRUE; });
$window->add($label);
$window->show_all;
Gtk2->main;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]