Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

ActiveState, TK, and w2k

by eLore (Hermit)
on Apr 18, 2002 at 20:32 UTC ( [id://160335]=perlquestion: print w/replies, xml ) Need Help??

eLore has asked for the wisdom of the Perl Monks concerning the following question:

Has anyone gotten TK to work with ActiveState 5.6.1 and Tk on Windows 2000? I'm trying to run the demo scripts (eg. floor.pl) and getting nothing. The script appears to execute, with no output. No error messages, no window pop.

Thoughts? (other than go find a nice *nix workstation =) )

Replies are listed 'Best First'.
Re: ActiveState, TK, and w2k
by Chmrr (Vicar) on Apr 18, 2002 at 21:37 UTC

    The canonical demo script to run to test is widget. It should have been put into C:\perl\bin (or equivilent) when the Tk ppm was installed. If that doesn't run, then you've got problems.

    perl -pe '"I lo*`+$^X$\"$]!$/"=~m%(.*)%s;$_=$1;y^`+*^e v^#$&V"+@( NO CARRIER'

Re: ActiveState, TK, and w2k
by eLore (Hermit) on Apr 18, 2002 at 21:44 UTC
    Addendum: <BL>
  • executed floor.pl demo via perl -W... no messages
  • Inserted a few print statements. demo's don't appear to actually do anything, just lots of sub definitions
  • Reinstalled Tk for giggles
  • <BL>


    Thanks to Chmrr for pointing out what I should have read in the documentation. widget.bat is the launcher for the demos.

Re: ActiveState, TK, and w2k
by rbc (Curate) on Apr 18, 2002 at 20:43 UTC
    Are you starting the scripts from a C:> prompt?

    If so, try adding some print statements.
Re: ActiveState, TK, and w2k
by thunders (Priest) on Apr 19, 2002 at 06:40 UTC

    In older Active State releases Tk needed to be installed via ppm. Newer perl builds from AS come with Tk, In either case I've never had a problem running Tk on and build of windows(having worked with NT,2K,ME, and 98SE)

    The reason floor.pl doesn't run, well look at the code, it doesn't use Tk;, for one thing. floor.pl is one of a few dozen scripts initialized through the widget demo. widget is installed on the path so you can run it from any directory by typing widget, or from Start->Run. On the widget demo, floor is under "Canvas #6. A building floor plan"

Re: ActiveState, TK, and w2k
by danichka (Hermit) on Apr 18, 2002 at 21:02 UTC
    Have you tried running it with warnings?

    use Your::Head;

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://160335]
Approved by thunders
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2024-04-24 00:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found