8.2 Error Dialogs

A dialog to display error messages is provided by the class TkTools.error, which is a sub class of TkTools.dialog. Figure 8.2 shows an example of how to use TkTools.error.


E={New TkTools.error
   tkInit(master:W
          text: 'Error in system configuration: '# 
                'too much memory.')}

Figure 8.2: A transient error dialog.


transient widgets

All dialogs provide for the option master. By giving a toplevel widget as value for master, the dialog appears as a transient widget: depending on the window manager the widget appears with less decoration, e. g., no title, on the screen. Moreover, when the master widget is closed, the dialog is closed as well.


Christian Schulte
Version 1.4.0 (20080702)