For Programmers: Free Programming Magazines  


Home > Archive > Tcl > June 2006 > Re: display gif jpg or tiff images in blt_treeview cells









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: display gif jpg or tiff images in blt_treeview cells
Donal K. Fellows

2006-06-30, 8:02 am

beet wrote:
> I can not figure how to display images in BLT treeview cells of in one
> column. Searched the posts, can not find anything now.


I don't know the BLT treeview at all so I'm going off googled
documentation here :-) but it seems that what you need to do is to set
the -icons option, either on individual entries or on the whole
treeview to set the default for all entries. The option takes a
two-element list of Tk image names; you'll create the images using
[image create photo] whose use you can look up. Once you can display
any image at all, you can use the tkimg extension (a.k.a. Img) to gain
access to format readers for JPEG and TIFF image formats. That'll be a
simple [package require] and all should then "just work".

Donal.

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com