aboutsummaryrefslogtreecommitdiffstats
path: root/Lib/defconQt/util/platformSpecific.py
blob: ba49172939162f05eaf5b536e243775b28d61123 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
from PyQt5.QtCore import Qt
import sys

# -----------
# File dialog
# -----------

if sys.platform == "darwin":
    fileFormats = "UFO Fonts (*.ufo)"
else:
    fileFormats = "UFO Fonts (metainfo.plist)"

# ---------
# Font size
# ---------

if sys.platform == "darwin":
    headerPointSize = 11
else:
    headerPointSize = 8

# ----
# Keys
# ----

if sys.platform == "darwin":
    deleteKey = Qt.Key_Backspace
else:
    deleteKey = Qt.Key_Delete