PyDocs

Nav

Graphical user interfaces with Tk

Dialog

  • Dialog(parent, title=None)
The base class for custom dialogs. Instantiating it shows the dialog modally and returns once the user closes it; the entered value is then available in the result attribute.
Members of Dialog

a

apply
Process the data entered by the user, for example by storing it in the result attribute.

b

body
Override to construct the dialog’s interface and return the widget that should have initial focus.
buttonbox
Default behaviour adds OK and Cancel buttons.

d

destroy
Destroy the dialog window, clearing the reference to the widget that had the initial focus.

r

result
The value produced by apply(), or None if the dialog was cancelled.

v

validate
Validate the data entered by the user.
0 Examples
No examples for tkinter.simpledialog/Dialog.
See Also
No see-alsos for tkinter.simpledialog/Dialog
0 Notes
No notes for Dialog