Yeah, Carl is right, you don't need Xwindows software.  So you're running
this on win2k?

try this exact script...

#Begin--------------------------------------------------------------

use Tk;

my $mw = MainWindow->new(-title => 'Hello World!!');
$mw->Button(-text => "Done!", -command => sub{exit})->pack();
MainLoop();

#End----------------------------------------------------------------

For this script don't worry about the lines...

#!/usr/local/bin/perl -w\
use lib '/export/home/bwise/perl/lib/site_perl/5.005';

...that you had in your earlier script.

I don't see why having those in there would cause a problem, but I don't
think you *NEED* them in win2k.  (I'm not sure if they even do anything in
win2k, I'm sure someone else can comment on this).

If you don't see it, make sure you check your task bar, it could possibly be
behind some other window.

If that doesn't work, lemme know. :)

-Casey Williams

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of
Carl Jolley
Sent: Thursday, June 28, 2001 2:59 PM
To: byron wise
Cc: Casey Williams; [EMAIL PROTECTED];
[EMAIL PROTECTED]
Subject: Re: Perl/Tk application woes


On Thu, 28 Jun 2001, byron wise wrote:

> Thanks Casey for your response.  I finally figured out what was wrong.  I
> didn't have an x-window display on my Win2000!!
> So I got a demo from www.xwin32.com
>
> Currently I'm playing with the O'Reilly Perl/Tk book.  I have one concern
> regarding the end user of any applications.
>
> It seems that the user (assuming they are running a windows OS) would have
> to download some x-window display and then using the x-window display
> execute the script from the command line.  In this situation,  I think
there
> are better alternatives for applications to be written in.  One such
> language would be Java.  Sure they need the JRE to execute the script but
> you can put the jar file on the network and they can run it from there.
> Plus, since it is running on their machine the response time to events and
> such is much faster than using an x-window.  These seem to be some short
> commings to Perl/Tk apps.
>
> Please enlighten me with your wisdom.
>

Tk running on Windows does not require the X-window software.

**** [EMAIL PROTECTED] <Carl Jolley>
**** All opinions are my own and not necessarily those of my employer ****

_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users

_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users

Reply via email to