Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Perl/Tk, scrollbar, @inc cannot locate tk/motion.pm

by bblustein (Beadle)
on Jul 24, 2003 at 14:36 UTC ( [id://277554]=perlquestion: print w/replies, xml ) Need Help??

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

Forgive me, monks-

I am such a perl novice, I am still inept at solving even basic sounding technical issues, as my understanding of how the perl module/file structures is incomplete.

I am programming in Perl tk, and using the "scrolled" widget for a listbox. However, whenever the scrollbar appears, whenever I move my mouse over it, I get no motion, but I get many error messages indicating @inc cannot locate tk/motion.pm or tk/leave.pm.

I am unsure why this is happening, as scrollbars have worked in the past for me, and I am also unsure how to correct this so my scrollbar widgets may again function. Any advice or help is greatly appreciated.

-Bryan, a very very green Monk-in-training.

edited by ybiC: retitle from "Need Technical Help"

  • Comment on Perl/Tk, scrollbar, @inc cannot locate tk/motion.pm

Replies are listed 'Best First'.
Re: Perl/Tk, scrollbar, @inc cannot locate tk/motion.pm
by alienhuman (Pilgrim) on Jul 24, 2003 at 15:14 UTC

    bblustein,

    I am also pretty green, but I think a good first step would be for you to post your code. If it's relatively short, drop it in some <code> tags and add it to your writeup. If it's long, put it in your scratchpad for everyone to take a look at (you can edit your scratchpad from your homenode--I just discovered this yesterday). Some of the error messages might also help.

    That's the extent of my help. I don't know jack about Perl/tk...

    AH

Re: Perl/Tk, scrollbar, @inc cannot locate tk/motion.pm
by tos (Deacon) on Jul 24, 2003 at 15:14 UTC
    Hi,

    in doubt i would prefer a new installation via CPAN. If you are using ActiveStatePerl (on windows) it's an easy way to use ppm for installing Tk. After that you should execute widget. This program shows you, if the installation succeeded, a lot of really cool demos of all Tk-features. Are they running fine you'll surely find one using scrollbars on which you can model your application on.

    greetings, tos

Re: Perl/Tk, scrollbar, @inc cannot locate tk/motion.pm
by bblustein (Beadle) on Jul 24, 2003 at 15:49 UTC
    Update: I have completely uninstalled Active Perl, then re-installed Activeperl 5.61 - build 635. I immediately rebooted once more, and ran the widget demo. The widget demo came up with the exact same error. So it is something weird happening with my computer, and not my programming. That's both good and bad at the same time. Unfortunately, having already un-installed/re-installed, I'm out of guesses on how to fix this. I'm still getting the @inc cannot locate leave.pm/motion.pm
      On Windows if you when you un-install it, be certain to remove the directory also c:\Perl. Once you do this everything should be gone and you should be able to start clean.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (8)
As of 2024-04-19 14:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found