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.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

In reply to Re^10: Tk:Photo -data with binary data? by BrowserUk
in thread Tk:Photo -data with binary data? by BrowserUk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.