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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reading a gif into tk

Status
Not open for further replies.

MrE4U

Programmer
Mar 29, 2003
11
0
0
US
Can give me a example of how to add a gif to a tk form? The tcl tk wiki is a little confusing on this topic.
 
First you need to make the GIF into a TK "image":
image create photo GifName -format gif -file filename.gif
Then, any widget that takes an "-image" option (like, say, label) can use the name (GifName in my example) for that option:
label .l1 -image GifName ...

Bob Rashkin
rrashkin@csc.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top