diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2008-11-19 13:51:44 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2008-11-19 13:51:44 (GMT) |
commit | 6347098a26238b6646680d8c6696595c6742292e (patch) | |
tree | 57d22c04ab0fddee57f8f56b0aaee7a1cea18ae1 /Tools/msi | |
parent | bb9b1f1d4a3f1c246aa5cb83cf96a33f13e66427 (diff) | |
download | cpython-6347098a26238b6646680d8c6696595c6742292e.zip cpython-6347098a26238b6646680d8c6696595c6742292e.tar.gz cpython-6347098a26238b6646680d8c6696595c6742292e.tar.bz2 |
Issue #4289: Remove Cancel button from AdvancedDlg.
Diffstat (limited to 'Tools/msi')
-rw-r--r-- | Tools/msi/msi.py | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/Tools/msi/msi.py b/Tools/msi/msi.py index 847db87..6411ac9 100644 --- a/Tools/msi/msi.py +++ b/Tools/msi/msi.py @@ -716,18 +716,15 @@ def add_ui(db): ##################################################################### # Advanced Dialog. advanced = PyDialog(db, "AdvancedDlg", x, y, w, h, modal, title, - "CompilePyc", "Next", "Cancel") + "CompilePyc", "Ok", "Ok") advanced.title("Advanced Options for [ProductName]") # A radio group with two options: allusers, justme advanced.checkbox("CompilePyc", 135, 60, 230, 50, 3, - "COMPILEALL", "Compile .py files to byte code after installation", "Next") + "COMPILEALL", "Compile .py files to byte code after installation", "Ok") - c = advanced.next("Finish", "Cancel") + c = advanced.cancel("Ok", "CompilePyc", name="Ok") # Button just has location of cancel button. c.event("EndDialog", "Return") - c = advanced.cancel("Cancel", "CompilePyc") - c.event("SpawnDialog", "CancelDlg") - ##################################################################### # Existing Directory dialog dlg = Dialog(db, "ExistingDirectoryDlg", 50, 30, 200, 80, modal, title, |