If i have 2 files eg. test1.tcl and test2.tcl
and i want a button in test1 to run test2.tcl
what do i need to write in test1.tcl
I have been trying -command {source test2.tcl}
but always get the message
could not read file "test2.tcl" : no such file or directory...
When the window for our drawing tool loads up it accesses our database
through C functions to find the names of the buttons and there
drop down menu names that we want displayed on the screen
###########################################################
proc pulldownmenu {} {
global celltype...
if i have an array like
array set Cellinfo {
type 1
width 80
height 120
cost 50
color #D60000
}
and i want to call a procedure and pass it
the array name so the procedure can perform calculations
on the data in the array eg. startCell Cellinfo
proc startCell { } {
upvar
}
i...
when setting the variable testVar to the following expression
set testVar [eval .c coords $Move(utag)]
It returns a string containing the co ordinates of the rectangle that has been selected
on the canvas. eg. 80.0 140.0 160.0 260.0
How would i then split that variable up into the four...
i am reading my tcl book at the moment and having difficulty getting
my head around how to build a list that contains an array of records
and then being able to populate the arrays with data
does anyone have any example code that might make things clearer
for me
Cheers
Steve
The following code is code that a member of my team passed to me and i have modified for our project.
I understand everything apart how the utag procedure works and in proc makeHorse i dont understand
what information is contained within the var set Cell(id) / .......
I know that every cell i...
I am designing a drawing package for my uni project
At the moment i have a scrollable canvas with a grid on it
I have buttons that when pressed i can drop a rectangular object on to the canvas
where my cursor is
What i would now like to do is include some code to get the rectangles to line up...
I am half way through my 3rd year software enginering project at uni ,we are now into the implemetation stage.
None of our team have ever used tcl/tk before so we are having a lot of trouble.
What I need to know can be simplified to the following
when I click on a button that I have already...
my problem is I cant find how to access the users name who created each file in a directory
I know using ls -l can tell you this but Im not accessing it from the command line
For finding the size of the files and the times they were last modified I have been using stbuf.st_size and...
I am having trouble with my uni homework , I have been reading through my books but cannot find the information i need.
I dont know the code for obtaining file information
We have to write the program in C running on UNIX machines
Im hoping someone can point me to a relevent web site where i...
I am studying computing science at university and i am having problems with the following homework
I'm hoping someone will be able to help me out.
HOMEWORK
Develop an emmbedded intel 8086 assembler program in stages to solve the following problem
Convert a string containing an unsigned integer...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.