|
From: Damon C. <da...@tc...> - 2007-03-20 17:33:57
|
> Er ... actually, I haven't had my morning coffee yet. No +1 to Joe's
> suggestion. How about -parent "" by default, and let the user specify
> it? This is more in tune with how core widgets work. This is also what
> I did with tklib's widget::dialog (which, IMO, should replace all of the
> above eventually ;) ).
>
Well, but most all dialogs should be transient to something. That's
just the way a dialog should be. At the very least, we could provide a
helper proc to get the "best guess" transient parent. I typically do
something like this:
proc ttk::parentWindow { {toplevel .} } {
return [lindex [wm stackingorder $toplevel] end]
}
ttk::dialog -parent [ttk::parentWindow]
Or some such nonsense. 0-]
Damon
|