From: Andreas K. <and...@ac...> - 2009-02-10 23:44:41
|
Jeff Hobbs wrote: > On 10-Feb-09, at 3:35 PM, Andreas Kupries wrote: >> Jeff Hobbs wrote: >>> Another couple of thoughts on this ... plugin-like would be similar >>> to themes and how we can add themes to Ttk. >> >> Hm ... Ttk allows switching themes on the fly, at runtime, right ? >> That could actually be handled ... The 'icon-theme' package would have >> to remember the images it handed out to the app, and the associated >> general icon names ... Switch the theme, go through the remembered >> images and reload their content ... > > Note that Tk handles this already through named images. You just change > it with [$img configure -file ...] and Tk does the updating for all > widgets using -image $img. Exactly. Note that it has to remember which icons it has handed out, you do not wish to $img configure -file ... for an icon the application has not used (yet). >> GSoC project ?! > > Good idea. Andreas. |