|
From: Damon C. <da...@tc...> - 2007-03-20 15:31:28
|
> 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.
Damon
|