Staging: this is not the live site, pydocs.org.
Graphical user interfaces with Tk
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.
Python docs © Python Software Foundation · Examples CC0 ·
Source on GitHub · Not affiliated with the PSF