Posted on 2010-05-22 11:56:24.862514-07 by vikram111
Error while using text in perl Tk
Hi! I get the following error when I run Perl Tk on Mac os x 10.6 /Perl version 5.10.0 "no event type or button # or keysym at /Library/Perl/5.10.0/darwin-thread-multi-2level/Tk/Widget.pm line 1105. at text1.pl line 10" I am running the following code
#!/usr/bin/perl -w use Tk; use strict; my $mw = MainWindow->new; $mw->geometry("200x100"); $mw->title("Text Test"); $mw->Text(-background => 'cyan', -foreground => 'white')->pack(-side => "top"); MainLoop;
Can Some one please help me out? I'm trying Tk for the first time. -Thanks Vikram
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.