set dialog [toplevel $parent -class Dialog] wm transient $dialog $owner catch {wm attributes $dialog -type dialog}Note that if you need a messagebox then you should use tk_messageBox which will use the native messagebox dialogs on windows and MacOSX.For quick and dirty (and ugly) general purpose dialogs see the tk_dialog command.There are some built-in dialogs which may defer to system native equivalents where available. See:
LV: When using wish, there are at times errors reported in what I presume are dialog boxes. When these boxes appear, the user is unable to copy and paste the information about the error into another file. Is there anything which a developer can do in these cases to make the error reporting better?
Dialog Widgets edit
- tk_messageBox
- The builtin dialog widget.
- A little value dialog, RS
- Minimal, indeed.
- An option dialog
- Fairly minimal. With and without ttk.
- A file properties dialog
- Another little value dialog
- A not-so-little value dialog
- A dialog box with quite a few features.
- Dialog
- Part of incr Widgets.
- tk-goodies
- [bugant]: tk-goodies provides a nice dialogs package and they look more cleaner