From: Jeff H. <je...@ac...> - 2009-02-10 22:55:49
|
My preference would be a more general icons package that supported multiple sets of icons, perhaps starting with famfam. This would be like the tklib style package, with substyles. So you have something more like: package require icons set groups [icons::get groups] ; # or packages or something => famfam kdeicons ... set group famfam set icons [icons::list *arrow* ?$group?] ... Where the grouping can be done by some ordering of directories with files of matching known image format types. Mind you, I don't have time to write this, so it's just an idea ... Jeff On 10-Feb-09, at 12:31 PM, Andreas Kupries wrote: > > Requesting review of a new module for tklib, before committing. > > Sources available at > ftp://ftp.tcl.tk/pub/incoming/tklib-famfam.tgz > (Can't put up on SF, they limit attachments to 256 KB, this file is 2 > MB compressed (6 MB uncompressed)). > > A module containing 2 packages wrapping around the silk and flags > icon sets of > famfam, to make their use in tcl apps easier. Just require the > package, then > load an icon/image by name. > > > Examples of use > package require famfam::silk > set arrows [famfam::silk list *arrow*] > set rotccw [famfam::silk get arrow_rotate_anticlockwise] > > package require famfam::flags > set dubya [famfam::flags list w*] > set wales [famfam::flags get wales] > > > Ideas for the future > - Commands to generate packages containing a subset of the icon set. > - With the icons hardwired into the package code (base64 encoded). > => Deployable as Tcl Module. > - With the icons in a subdirectory as for the original package. > - With the icons attached to the base tcl code (virtual fs). > > > Andreas. |