Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

learning "practical programming in tcl/tk" - can't use examples

Status
Not open for further replies.

pauliwan

Technical User
Aug 16, 2008
1
DE
hi

i want to learn tcl/tk. so i have bought the book practical programming in tcl/tk. but i can't use the example scripts. every time i got a error.

for example:
i have tried to built the " example browser"

but if i want to start the browser, i got this message:
error in startup script: invalid command name "Scrolled_Text"
while executing
"Scrolled_Text .body \
-width 80 -height 10\
-setgrid true"
invoked from within
"set browse(text) [Scrolled_Text .body \
-width 80 -height 10\
-setgrid true]"


i have changed usr/local/bin/wish to usr/bin/wish
but nothing happend

i am confused. what's wrong with the script?

i'm working with debian.
 
First, make sure you actually have "wish" installed in /usr/bin.

Then, check your version.

Then, and this is key, make sure there actually is a "Scrolled_Text" widget. I know of no such widget. There is an IWdiget named "scrolledtext" for which you would need to
load the iwidgets package, but that is syntactically different from "Scrolled_Text".

I'm not familiar with the example but might it require a previous example already extant?

_________________
Bob Rashkin
 
After having made a search of "Scrolled_Text" in your link, i found :
"# Scrolled_Text is defined in Example 27-1 on page 346"

Check there ^^
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top