Greetings, I have downloaded and installed the latest Tcl/Tk from ActiveState 8.3.4.2 and still no luck. The app is just a simple test with 2 buttons and both buttons should reset the image for button1. Button1 works great but Button2 causes app to complain "couldn't recognize image data" and if I do a package require Img on Button1 the app dies in my tests. I tried on Win98 (and FreeBSD with the latest Tcl/Tk and libimg installed for Img1.2.4). Below is the code for each button in my test app:
Button1 Code: package require http # Unremark the below to cause app to die # package require Img set gif [http::geturl http://someURL/some.gif] http::wait $gif set img [image create photo -data [http::data $gif]] Button1 configure -image $img Button2 Code: package require http package require Img set jpg [http::geturl http://someURL/some.jpg] http::wait $jpg set img [image create photo -data [http::data $jpg]] Button1 configure -image $jpg Any thoughts or other ways to accomplish? Many thanks! > To: [EMAIL PROTECTED] > From: [EMAIL PROTECTED] > Date: Fri, 10 May 2002 14:00:41 -0700 > > > In the ActiveTcl distribution (8.3.4), there is a package called img that > adds support for jpeg images. > > Just include: > > package require Img > > in your program to add jpeg support. > > CG -- RJEnt - Webmail RJEnt - http://www.rjent.pair.com Solutions provided with FreeBSD - http://www.freebsd.com _______________________________________________________________ Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: [EMAIL PROTECTED] _______________________________________________ vtcl-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/vtcl-user
