Am Mon, 17 Apr 2000 schrieb anahuac2:
>1) How can I do to make my program
>find an file by name?
Use the "glob" command and analyze the
returned list.
>2) Today when I want put an image in
>some Window, I insert an Label and in
>the field Image in the properties
>window I write the name of the image
>file without the extension. After this
>I edit the tcl file and write one line
>before the Label variable (like
>$base.lab34) this command: image
>create photo
>image_file_name_without_extension
>-file [file join
>image_file_name_with_extension].
>Well this works fine, but all time
>when I edit the file from the Vtcl and
>save it again, the Vtcl erase this
>Line, and the tcl file can't be
>executed anymore.
>My quastion is. Exists other way to
>insert an image in the Windows? and
>how can I do to dont lose this command
>line every time I save the file?
If you put your "create" line in one of
your procedures (I do it in "init") it
should stay. Don't add it manually in
the widget creation part.
>3) In my program the user will need to
>put some informations in some entries
>widgets. Bus I want make to this
>entries start with the state in
>disable, and only after the user click
>in a button on the windows the state
>of the widgets change to normal. Is
>this possible? I bilieve it is, but I
>don know what command I need to use.
In the attribute editor of vtcl set the
"state" to "disabled". Then select the
button and edit its "command". It should
contain the line
.your_toplevel.your_button configure -state normal
Have fun!
--
Josua Dietze
------------
No sigfile
No ideas
No money ....
_______________________________________________
vtcl-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/mailman/listinfo/vtcl-user