|
From: Jeff H. <je...@ac...> - 2006-06-21 05:58:12
|
Michael Kirkham wrote: > On Sun, 18 Jun 2006, Jeff Hobbs wrote: > >> That looks about right. I don't suppose you would be willing to share >> the magic without me code-diving? I would be willing to examine it >> and attempt to rationalize a more flexible variant for others. > > This is the proc that does it (which may or may not be the right way to > do it). It creates a "SearchEntry" layout in all themes: As promised, attached is a megawidget variant of Michael's SearchEntry. It's for placement in my tklib widget package, so it uses that framework (which basically means it is a snidget). I've attached the code, with a sample. It has a built-in image which I plan to modify (add a little down arrow). The image isn't configurable ... it's easy if I allow it across all instances (modify the master image), but for each menuentry will be trickier. It's a bit of a hack of various bits together, but it does seem to work. Comments welcome. You'll likely find this in my widget package in CVS tomorrow. Jeff |