mirror of
https://github.com/python/cpython.git
synced 2025-08-01 07:33:08 +00:00
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:
parent
6aaccc6b55
commit
19302d927e
8 changed files with 130 additions and 20 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue