in reply to tcl::pTk GUI icons

My tcl (8.5) is not the lates, and this version does not support png, as the following script demonstrates: I could use gif images, but I do not think it is common practice (and I can not make them look nice). What would be standard practice here? Unfortunately I couldn't find any practical advice around that fits my case. Any suggestion is welcome. I am on macOS.

Use bitmaps (bmp)? Use jpegs? Upgrade to Tcl that supports png?

Replies are listed 'Best First'.
Re^2: tcl::pTk GUI icons
by chrstphrchvz (Scribe) on Jul 20, 2018 at 03:02 UTC

    It sounds like PNG support is added/improved in Tk 8.6.x (cf. https://wiki.tcl.tk/6150), so if it's possible to upgrade, I'd give that a try.

    The other approach out there for older Tcl/Tk might be to have either the Img, Pixane(no longer available?), or tkPng extension installed.