Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Re: Perl/Tk - Tk::Clock

by PERLscienceman (Curate)
on Jul 17, 2003 at 21:28 UTC ( #275403=note: print w/replies, xml ) Need Help??


in reply to Re: Perl/Tk - Tk::Clock
in thread Perl/Tk - Tk::Clock

Greetings! Thank you for your response. Since you mentioned small digital clocks based on Tk; here is another one, even simpler than the first. It is based on the Tk::StrfClock module. All of about 6 lines of code to get it going, it generates a small Tk Widget with date and time.

Here is the code, very simple. Enjoy!

#!/usr/bin/perl -w use Tk; use Tk::StrfClock; my $top=MainWindow->new(); $top->StrfClock()->pack(); MainLoop();

Replies are listed 'Best First'.
Re:
by Anonymous Monk on Jul 28, 2003 at 01:24 UTC
    Hey that last (short one) looks like a winner. However, I don't see it in the ActiveState list. Thats where I get my modules from for Win32 system.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://275403]
help
Chatterbox?
[LanX]: interesting the author doesn't seem to accept javascript as a scripting language
[LanX]: ... and calls php7 the winner oO
[RonW]: RPerl is only a curiosity to me. I can see where some one who primarily codes in Perl might find RPerl useful, but to me, given the choice between RPerl's restrictions and C, I'd choose C

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (7)
As of 2017-05-22 20:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?