Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4cf8569

Browse files
committed
Merge with 3.4
2 parents 83e6675 + e3416e6 commit 4cf8569

1 file changed

Lines changed: 8 additions & 10 deletions

File tree

Lib/idlelib/configDialog.py

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -79,28 +79,26 @@ def CreateWidgets(self):
7979
page_names=['Fonts/Tabs','Highlighting','Keys','General'])
8080
frameActionButtons = Frame(self,pady=2)
8181
#action buttons
82-
8382
if macosxSupport.isAquaTk():
84-
# Surpress the padx and pady arguments when
85-
# running as IDLE.app, otherwise the text
86-
# on these buttons will not be readable.
87-
extraKwds={}
83+
# Changing the default padding on OSX results in unreadable
84+
# text in the buttons
85+
paddingArgs={}
8886
else:
89-
extraKwds=dict(padx=6, pady=3)
87+
paddingArgs={'padx':6, 'pady':3}
9088

9189
# Comment out button creation and packing until implement self.Help
9290
## self.buttonHelp = Button(frameActionButtons,text='Help',
9391
## command=self.Help,takefocus=FALSE,
94-
## **extraKwds)
92+
## **paddingArgs)
9593
self.buttonOk = Button(frameActionButtons,text='Ok',
9694
command=self.Ok,takefocus=FALSE,
97-
**extraKwds)
95+
**paddingArgs)
9896
self.buttonApply = Button(frameActionButtons,text='Apply',
9997
command=self.Apply,takefocus=FALSE,
100-
**extraKwds)
98+
**paddingArgs)
10199
self.buttonCancel = Button(frameActionButtons,text='Cancel',
102100
command=self.Cancel,takefocus=FALSE,
103-
**extraKwds)
101+
**paddingArgs)
104102
self.CreatePageFontTab()
105103
self.CreatePageHighlight()
106104
self.CreatePageKeys()

0 commit comments

Comments
 (0)