Skip to content

Commit 2ac5914

Browse files
author
martin.v.loewis
committed
Issue #4289: Remove Cancel button from AdvancedDlg.
git-svn-id: http://svn.python.org/projects/python/trunk@67283 6015fed2-1504-0410-9fe1-9d1591cc4771
1 parent ff67ffe commit 2ac5914

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

Misc/NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ Library
6666
Build
6767
-----
6868

69+
- Issue #4289: Remove Cancel button from AdvancedDlg.
70+
6971
- Issue #1656675: Register a drop handler for .py* files on Windows.
7072

7173
- Issue #4120: Exclude manifest from extension modules in VS2008.

Tools/msi/msi.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -716,18 +716,15 @@ def add_ui(db):
716716
#####################################################################
717717
# Advanced Dialog.
718718
advanced = PyDialog(db, "AdvancedDlg", x, y, w, h, modal, title,
719-
"CompilePyc", "Next", "Cancel")
719+
"CompilePyc", "Ok", "Ok")
720720
advanced.title("Advanced Options for [ProductName]")
721721
# A radio group with two options: allusers, justme
722722
advanced.checkbox("CompilePyc", 135, 60, 230, 50, 3,
723-
"COMPILEALL", "Compile .py files to byte code after installation", "Next")
723+
"COMPILEALL", "Compile .py files to byte code after installation", "Ok")
724724

725-
c = advanced.next("Finish", "Cancel")
725+
c = advanced.cancel("Ok", "CompilePyc", name="Ok") # Button just has location of cancel button.
726726
c.event("EndDialog", "Return")
727727

728-
c = advanced.cancel("Cancel", "CompilePyc")
729-
c.event("SpawnDialog", "CancelDlg")
730-
731728
#####################################################################
732729
# Existing Directory dialog
733730
dlg = Dialog(db, "ExistingDirectoryDlg", 50, 30, 200, 80, modal, title,

0 commit comments

Comments
 (0)