diff options
| author | Ronald Oussoren <ronaldoussoren@mac.com> | 2009-03-04 21:35:05 (GMT) | 
|---|---|---|
| committer | Ronald Oussoren <ronaldoussoren@mac.com> | 2009-03-04 21:35:05 (GMT) | 
| commit | a97063a1086266e774586765b3c3e65ed2a4a1eb (patch) | |
| tree | 7f16fd30f492457d5fbb0e3484c6f732743c6413 /Lib/idlelib/configDialog.py | |
| parent | cea1ddb4aa6ccae552ff9838cb07c6802785b8fc (diff) | |
| download | cpython-a97063a1086266e774586765b3c3e65ed2a4a1eb.zip cpython-a97063a1086266e774586765b3c3e65ed2a4a1eb.tar.gz cpython-a97063a1086266e774586765b3c3e65ed2a4a1eb.tar.bz2  | |
Fixes issues 3883 and 5194
Diffstat (limited to 'Lib/idlelib/configDialog.py')
| -rw-r--r-- | Lib/idlelib/configDialog.py | 16 | 
1 files changed, 12 insertions, 4 deletions
diff --git a/Lib/idlelib/configDialog.py b/Lib/idlelib/configDialog.py index acab053..2f66d09 100644 --- a/Lib/idlelib/configDialog.py +++ b/Lib/idlelib/configDialog.py @@ -19,6 +19,7 @@ from tabbedpages import TabbedPageSet  from keybindingDialog import GetKeysDialog  from configSectionNameDialog import GetCfgSectionNameDialog  from configHelpSourceEdit import GetHelpSourceDialog +import macosxSupport  class ConfigDialog(Toplevel): @@ -69,18 +70,25 @@ class ConfigDialog(Toplevel):                  page_names=['Fonts/Tabs','Highlighting','Keys','General'])          frameActionButtons = Frame(self,pady=2)          #action buttons +        if macosxSupport.runningAsOSXApp(): +            # Changing the default padding on OSX results in unreadable +            # text in the buttons +            paddingArgs={} +        else: +            paddingArgs={'padx':6, 'pady':3} +          self.buttonHelp = Button(frameActionButtons,text='Help',                  command=self.Help,takefocus=FALSE, -                padx=6,pady=3) +                **paddingArgs)          self.buttonOk = Button(frameActionButtons,text='Ok',                  command=self.Ok,takefocus=FALSE, -                padx=6,pady=3) +                **paddingArgs)          self.buttonApply = Button(frameActionButtons,text='Apply',                  command=self.Apply,takefocus=FALSE, -                padx=6,pady=3) +                **paddingArgs)          self.buttonCancel = Button(frameActionButtons,text='Cancel',                  command=self.Cancel,takefocus=FALSE, -                padx=6,pady=3) +                **paddingArgs)          self.CreatePageFontTab()          self.CreatePageHighlight()          self.CreatePageKeys()  | 
