This patch improves the L&F of IDLE on OSX. The changes are conditionalized on

being in an IDLE.app bundle on darwin. This does a slight reorganisation of the
menus and adds support for file-open events.
This commit is contained in:
Ronald Oussoren 2006-06-11 14:33:36 +00:00
parent 6aaccc6b55
commit 19302d927e
8 changed files with 130 additions and 20 deletions

View file

@ -2,6 +2,7 @@
import re
import sys
import macosxSupport
class ZoomHeight:
@ -29,6 +30,14 @@ def zoom_height(top):
if sys.platform == 'win32':
newy = 0
newheight = newheight - 72
elif macosxSupport.runningAsOSXApp():
# The '88' below is a magic number that avoids placing the bottom
# of the window below the panel on my machine. I don't know how
# to calculate the correct value for this with tkinter.
newy = 22
newheight = newheight - newy - 88
else:
#newy = 24
newy = 0