Greetings from Wyoming!
Background:
I want to display a list of Button/Entry pairs to
the user, such that the user can press the button
and make a directory/file selection using the
tk_getOpenfile routine. Once the dir/file is
selected, I want the entry portion of the pair
to display what the user selected.
My button command is this:
get_filedir BIFHOME
(NOTE: BIFHOME is an example, and changes depending
on which button the user pushed.)
and my proc is this:
(NOTE: this proc was copied straight from the online
manual)
proc get_filedir {w} {
set types {
{{Text Files} {.txt} }
{{TCL Scripts} {.tcl} }
{{C Source Files} {.c} TEXT}
{{GIF Files} {.gif} }
{{GIF Files} {} GIFF}
{{All Files} * }
}
set filename [tk_getOpenFile -filetypes $types]
if {$filename != ""} {
# Open the file ...
set w $filename
}
}
In the Attribute Editor, I've set my text var to be
the corresponding variable sent to the proc by the
button (E.G. the text var for the entry in the above
example is BIFHOME)
My problem:
Using the above information, I would expect the
entry portion to be updated with the users selection,
but when I try it, the entry is blank. I don't get
any errors with which to track down why it's blank,
even after the user has selected a dir/file
I am new to Tcl/Tk and very new with vtcl, so be
gentle with me.
Thank you
--
Bob Weant
[EMAIL PROTECTED]
[EMAIL PROTECTED]
-----------------------------------------
He is no fool who gives up what he cannot
keep, to gain what he cannot lose.
-----------------------------------------