diff options
author | Terry Jan Reedy <tjreedy@udel.edu> | 2014-05-12 03:32:32 (GMT) |
---|---|---|
committer | Terry Jan Reedy <tjreedy@udel.edu> | 2014-05-12 03:32:32 (GMT) |
commit | 06313b79d5c0eaeed8f37838b5e9a064eecf0b98 (patch) | |
tree | 8e0099e27737088549327238291dbd5f3e612d90 /Lib/idlelib/aboutDialog.py | |
parent | 23a192d9633ace0fe83c9ac392e1df06d8c35da6 (diff) | |
download | cpython-06313b79d5c0eaeed8f37838b5e9a064eecf0b98.zip cpython-06313b79d5c0eaeed8f37838b5e9a064eecf0b98.tar.gz cpython-06313b79d5c0eaeed8f37838b5e9a064eecf0b98.tar.bz2 |
Issue #18104: Add idlelib/idle_test/htest.py with a few sample tests to begin
consolidating and improving human-validated tests of Idle. Change other files
as needed to work with htest. Running the module as __main__ runs all tests.
Diffstat (limited to 'Lib/idlelib/aboutDialog.py')
-rw-r--r-- | Lib/idlelib/aboutDialog.py | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/Lib/idlelib/aboutDialog.py b/Lib/idlelib/aboutDialog.py index 7fe1ab8..2b58013 100644 --- a/Lib/idlelib/aboutDialog.py +++ b/Lib/idlelib/aboutDialog.py @@ -12,7 +12,7 @@ class AboutDialog(Toplevel): """Modal about dialog for idle """ - def __init__(self,parent,title): + def __init__(self, parent, title): Toplevel.__init__(self, parent) self.configure(borderwidth=5) self.geometry("+%d+%d" % (parent.winfo_rootx()+30, @@ -136,10 +136,5 @@ class AboutDialog(Toplevel): self.destroy() if __name__ == '__main__': - # test the dialog - root = Tk() - def run(): - from idlelib import aboutDialog - aboutDialog.AboutDialog(root, 'About') - Button(root, text='Dialog', command=run).pack() - root.mainloop() + from idlelib.idle_test.htest import run + run(AboutDialog) |