On Tue, 25 Feb 2003 10:30:32 +0530, [EMAIL PROTECTED] (Anand Ramakrishna) wrote:
> I work on Solaris and I have perl installed. Do I have to install Perl Tk > separately. >I got this sample program from the web and I tried to run it in my machine. I get >this error when I do it. >"Can't locate object method "new" via package "MainWindow" at ./gui_test.pl line 3" >I dont understand what's happening. Please help me in this regard. > You must install Tk, it's a separate module. Plus the program needs a MainLoop statement. >#!/usr/local/bin/perl use Tk; >my $vu_win = MainWindow->new(); >$vu_win->configure(-title=>'Verify User',-background=>'blue'); >$vu_win->geometry('+100+300'); MainLoop; > >$vu_win->destroy; -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]