Hi, tu use images in the Vtcl folow
this steps:

1) Insert an Label widget in your
window

In the Attributes editor:

2) Remove the text
3) Insert in the the image field the
name of the image file without the
extension end press Enter. An Error
message will appear. Don't worrie with
this.
4) Save and close your file.
5) Edit the tcl file with pico or vi
6) Search in the file this line:

proc {main}  {argc argv} {

}

7) Insert in the braces this line:

image create photo
image_file_name_without_extension
-file [file join
/path/image_file_name_with_extension]

The result look like this:

proc {main}  {argc argv} {

image create photo anahuac -file [file
join /home/anahuac.gif]

}

I hope this this can help you,

Anahuac

> Hello VTCLers,
> 
> as a newbie I�m asking myself
"...what�s wrong with my
> TCL/TK-programming"? If I use some
graphics (xbm or gif) I had to start
> the file with the call "wish8.0
xxx.tcl".  If there isn�t any graphics
> I can start the TCL/TK-program with
just a mouse-click. Please give me
> some assistence to find out what�s
going wrong. Thank you!  
> 
> Have a nice day & smile  --- 
HERBERT
> 
>                                 
LINUX every day keeps Micro$hit away !
>
-----------------------------------------------------------------------
> HERIBERT JOSEF GRUENBAUER   
<[EMAIL PROTECTED]>        LINUX
SYSTEM
>
-----------------------------------------------------------------------
> visit our internet home page:
http://pws.prserv.net/gruenbauer  -
eof -
> 
>
_______________________________________________
> vtcl-user mailing list
> [EMAIL PROTECTED]
>
http://lists.sourceforge.net/mailman/listinfo/vtcl-user
> 


______________________________________________
EconoMiner
Tudo sobre Economia? O Miner acha para voc�.
http://miner.bol.com.br/econominer.html 
 


_______________________________________________
vtcl-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/mailman/listinfo/vtcl-user

Reply via email to