|
From: Jeff H. <je...@ac...> - 2007-03-20 16:10:51
|
Damon Courtney wrote: >> This appears to be a common pitfall with [ttk::dialog] -- >> you're not the first to run into this. I was considering >> changing things so that [ttk::dialog]s that are direct >> children of "." are nontransient by default -- what do >> others think? > > Do what BWidgets does. If the parent is "." and that window is > withdrawn, make the window non-transient. Or, considering that dialogs > are drawn immediately (in BWidgets they are created but not drawn until > "$w draw" is called), if ANY parent window is not visible, make the > dialog non-transient. One would usually assume that if you're using > ttk::dialog that you want it to appear immediately no matter what the > parent is. 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 ;) ). Jeff |