An extension for [Ttk]/[Tile] that uses the [GTK] [GUI] toolkit. See: http://www.ellogon.org/petasis/index.php?option=com_content&task=view&id=29&Itemid=45 [NEM] To use this extension, download and install the package for your system from the link above. Then you simply need to require the package and instruct [ttk] to use this theme: ====== package require ttk::theme::tilegtk 0.2 ttk::style theme use tilegtk # Then code Ttk GUI as usual, and the GTK widgets will be used: pack [ttk::button .b -text "Hello!" -command exit] ====== ---- [peterc] 2009-01-28: I get this error when running the above on Windows XP SP3. (The tilegtk0.2 dir is in directory in ::auto_path.) [http://pc.autons.net/stuff/tilegtk-0.2-xp-error.png] [NEM] Looks like a missing DLL somewhere. There is a utility called "depends.exe" you can get for Windows that will show you what the missing DLL is. I guess maybe a missing GTK dll? ---- [D. McC] 2009 Jan 28: Thanks! That's better than no documentation at all. Just a few questions (I'll probably think of more later): Where do you install it on Linux? Does it pick up on whatever the existing GTK2 theme is at the time (e.g., Stardust), as [gnocl] does, or does it give you only a single GTK2-like theme? Is there anything like a detailed explanation of what makes it work? I'm really interested in this, if it works, because I'm writing at least one application specifically for [Puppy Linux], on which the preferred look now is GTK+ 2.0, with Stardust being the default theme. (Good thing--it's the only good-looking GTK2 theme available on Puppy, so far as I can see.) I guess I could learn [gnocl] if necessary (I have, a little, already)--but it would be a much more efficient use of my time if I could just write standard Ttk GUI code and have it come out looking like Stardust! [NEM] As far as I know (I'm not the author), TileGTK uses real GTK widgets to implement a Ttk "theme". Therefore, it should pick up whatever GTK theme your Linux system is using. To install it on Linux, just unpack the tarball somewhere on your [auto_path]. Likely candidates are /usr/local/lib or /usr/share/lib. On my ubuntu system, the default place for extensions seems to be /usr/local/share/tcltk. [D. McC] 2009 Feb 1: OK, I got around to installing it and trying the sample code you provided. I got a ttk::button displayed, all right, but it didn't pick up on the Stardust theme, which [gnocl] did immediately pick up on. Unless this problem can be solved, I guess I'll have to stick with [gnocl] for now. It does appear to be possible to use [gnocl] for a fair number of things, but I'd still prefer to use Ttk widgets if I could get them to look like Stardust. [WJG] (02-02-09) Gnocl can do 'a fair number of things'. Surely you you mean a great deal of things? What Gtk features do you need that aren't already supported in Gnocl? Features that you believe Tk has that Gnocl hasn't? This is a unique opportunity to contribute to three great openSource projects - Puppy, your own apps and Gnocl! Remember, Gnocl isn't a work around or revamp and Gnocl isn't 'picking up' on themes, it works directly with the Gtk libraries. For Puppy development I would have thought it the first, rather than second choice. ---- !!!!!! %| [Category Package] | [Category GUI] |% !!!!!!