|
From: Kevin P. <Kev...@Ap...> - 2007-11-27 16:28:48
|
Currently when the user presses a button on a ttk::dialog widget, the widget is destroyed regardless of which button was invoked, and the return status of the callback command. In terms of user feedback and interaction with the dialog widget, wouldn't it be better if the command where executed before the dialog widget is destroyed? The dialog widget could check the return status of the command, and if it was zero, destroy the dialog. This way the programmer has some control over when the dialog is destroyed. To accomplish this task now, I don't specify a '-command' option when I create the dialog, and configure the dialog button commands after the dialog is created. Just a thought. I don't know if this topic has been previously discussed. -- Kevin Partin Applied Structural Dynamics, Inc. (281) 286-8959 |