Misc fixes for MacOS

This commit is contained in:
Jonathan Harris authored and Athanasius committed 2020-06-21 16:31:41 +01:00
1 parent 4daaed7f0c
commit a4f4483d20
4 files changed
+6 -4

No files matched your search

+1 -1
View File
@@ -29,7 +29,7 @@ class Notebook(ttk.Notebook):
style = ttk.Style()
if platform=='darwin':
if map(int, mac_ver()[0].split('.')) >= [10,10]:
if list(map(int, mac_ver()[0].split('.'))) >= [10,10]:
# Hack for tab appearance with 8.5 on Yosemite & El Capitan. For proper fix see
# https://github.com/tcltk/tk/commit/55c4dfca9353bbd69bbcec5d63bf1c8dfb461e25
style.configure('TNotebook.Tab', padding=(12,10,12,2))