summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorRonald Oussoren <ronaldoussoren@mac.com>2009-02-12 16:02:11 (GMT)
committerRonald Oussoren <ronaldoussoren@mac.com>2009-02-12 16:02:11 (GMT)
commit9e35004509f3744a6ee51e89540b8ff41d0d73c9 (patch)
tree6154ee4a07fc5ffc59b16507866895f864c5407e /Lib
parent3e264e13ede4c3c067dd30052aa0f1e7298342d2 (diff)
downloadcpython-9e35004509f3744a6ee51e89540b8ff41d0d73c9.zip
cpython-9e35004509f3744a6ee51e89540b8ff41d0d73c9.tar.gz
cpython-9e35004509f3744a6ee51e89540b8ff41d0d73c9.tar.bz2
This fixes issue3883 (text on the buttons in the preferences panel for IDLE doesn't fit on OSX)
Diffstat (limited to 'Lib')
-rw-r--r--Lib/idlelib/configDialog.py18
1 files changed, 14 insertions, 4 deletions
diff --git a/Lib/idlelib/configDialog.py b/Lib/idlelib/configDialog.py
index a6b33a2..20ed827 100644
--- a/Lib/idlelib/configDialog.py
+++ b/Lib/idlelib/configDialog.py
@@ -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()