help image scrolling
- From: suchodj@xxxxxxxxxx
- Date: Sat, 29 Apr 2006 18:19:25 +0200
Hello
after many difficulties i managed to get in the
text widget both an image and scrollbars.
I cannot find a way to scroll my image !!!
any help is welcomed
hereafter is my code
**********
#scrollbars
text .t -yscrollcommand {.s set}
scrollbar .s -command {.t yview}
pack .s -side right -fill y
pack .t -expand yes -fill both
#enabling jpeg
package require Img
#going to the image directory
cd C:/tmp/venise
#getting the image
set im [image create photo im -file 04.jpg]
#inserting image
..t image create end -image im
*******************
thank you
jerome
.
- Follow-Ups:
- Re: help image scrolling
- From: Aric Bills
- Re: help image scrolling
- Prev by Date: Re: Handling paths of length > 260 in Tcl on Windows
- Next by Date: Re: Standard file open/app launch commands for Mac, Win, and X11
- Previous by thread: Standard file open/app launch commands for Mac, Win, and X11
- Next by thread: Re: help image scrolling
- Index(es):
Relevant Pages
|