Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
9e350045
Commit
9e350045
authored
Feb 12, 2009
by
Ronald Oussoren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
This fixes issue3883 (text on the buttons in the preferences panel for IDLE doesn't fit on OSX)
parent
3e264e13
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
4 deletions
+14
-4
Lib/idlelib/configDialog.py
Lib/idlelib/configDialog.py
+14
-4
No files found.
Lib/idlelib/configDialog.py
View file @
9e350045
...
...
@@ -21,6 +21,7 @@ from idlelib.tabbedpages import TabbedPageSet
from
idlelib.keybindingDialog
import
GetKeysDialog
from
idlelib.configSectionNameDialog
import
GetCfgSectionNameDialog
from
idlelib.configHelpSourceEdit
import
GetHelpSourceDialog
from
idlelib
import
macosxSupport
class
ConfigDialog
(
Toplevel
):
...
...
@@ -71,18 +72,27 @@ class ConfigDialog(Toplevel):
page_names
=
[
'Fonts/Tabs'
,
'Highlighting'
,
'Keys'
,
'General'
])
frameActionButtons
=
Frame
(
self
,
pady
=
2
)
#action buttons
if
macosxSupport
.
runningAsOSXApp
():
# Surpress the padx and pady arguments when
# running as IDLE.app, otherwise the text
# on these buttons will not be readable.
extraKwds
=
{}
else
:
extraKwds
=
dict
(
padx
=
6
,
pady
=
3
)
self
.
buttonHelp
=
Button
(
frameActionButtons
,
text
=
'Help'
,
command
=
self
.
Help
,
takefocus
=
FALSE
,
padx
=
6
,
pady
=
3
)
**
extraKwds
)
self
.
buttonOk
=
Button
(
frameActionButtons
,
text
=
'Ok'
,
command
=
self
.
Ok
,
takefocus
=
FALSE
,
padx
=
6
,
pady
=
3
)
**
extraKwds
)
self
.
buttonApply
=
Button
(
frameActionButtons
,
text
=
'Apply'
,
command
=
self
.
Apply
,
takefocus
=
FALSE
,
padx
=
6
,
pady
=
3
)
**
extraKwds
)
self
.
buttonCancel
=
Button
(
frameActionButtons
,
text
=
'Cancel'
,
command
=
self
.
Cancel
,
takefocus
=
FALSE
,
padx
=
6
,
pady
=
3
)
**
extraKwds
)
self
.
CreatePageFontTab
()
self
.
CreatePageHighlight
()
self
.
CreatePageKeys
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment