in reply to Re^9: Tk:Photo -data with binary data?
in thread Tk:Photo -data with binary data?
I spoke to soon.
I feel like that little kid at Christmas that just unwrapped a huge present and discovered that he'd got the super wizz-bang, all singing and dancing, latest greatest supertoy. Ripped open the packaging. Labouriously followed the assembly instructions. Assembled all the pieces and stuck on all the decals. Digested the operations manual. Before dicovering that my huge, new, shiny, toy is destined to sit there--inert--because "No batteries supplied"!
Three days and nearly 100 MB of downloads later. I've read the wiki, the tcl tutorial, an online book and dog knows how many other links and references, and still, despite all the installations going cleanly, and all the tests having been passed, and the demo widgets working, Tcl/Tk does not.
Having solved myriad previous problems, I've given up on solving
Can't find a usable init.tcl in the following directories: c:/Perl/site/lib/auto/lib/tcl8.4 c:/perl/lib/tcl8.4 c:/lib/tcl8.4 c:/perl/library c:/library c:/tcl8.4.14/library
Which is unsurprising really given that none (not one. Not a single one!) of these directories actually exist. So why is it looking for in those directories for this file, which does exist in 3 other places that do exist? Where does this list come from?
A C:\tcl\lib\bwidget1.8\init.tcl A C:\tcl\lib\tcl8.4\init.tcl A C:\tcl\vtcl-1.6.0\lib\bwidget\init.tcl
So, try a different route. Maybe a pure tcl script will solve my problem? But this doesn't work either:
#!/usr/bin/wish set fdata [read [open "/test/colorcube.png"]] label .l1 -image [image create photo -format png -data $fdata] pack .l1
complaining that "Image format png is not supported" despite that demos/Img/demo.tcl clearly shows it is.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^11: Tk:Photo -data with binary data?
by vkon (Curate) on Jun 07, 2007 at 22:17 UTC | |
by BrowserUk (Patriarch) on Jun 07, 2007 at 23:43 UTC | |
by vkon (Curate) on Jun 08, 2007 at 04:54 UTC | |
by BrowserUk (Patriarch) on Jun 08, 2007 at 05:50 UTC | |
by BrowserUk (Patriarch) on Jun 08, 2007 at 06:55 UTC | |
by vkon (Curate) on Jun 08, 2007 at 07:12 UTC | |
|