diff options
| author | Adrien Tétar | 2015-10-14 14:04:15 +0200 | 
|---|---|---|
| committer | Adrien Tétar | 2015-10-14 14:04:15 +0200 | 
| commit | 80083054465a560825676cf1e6e944f6572c473b (patch) | |
| tree | d930cba056559ad3ce1d048ea29986c51ec08cfd /Lib/defconQt/fontView.py | |
| parent | b63c182aa1291d01d815cf2b45dfa4f1317f417b (diff) | |
| download | trufont-80083054465a560825676cf1e6e944f6572c473b.tar.bz2 | |
meta: use backspace as Del key on OSX, refactor
Diffstat (limited to 'Lib/defconQt/fontView.py')
| -rw-r--r-- | Lib/defconQt/fontView.py | 9 | 
1 files changed, 3 insertions, 6 deletions
| diff --git a/Lib/defconQt/fontView.py b/Lib/defconQt/fontView.py index a3b2520..7c83d51 100644 --- a/Lib/defconQt/fontView.py +++ b/Lib/defconQt/fontView.py @@ -5,6 +5,7 @@ from defconQt.glyphView import MainGfxWindow  from defconQt.groupsView import GroupsWindow  from defconQt.scriptingWindow import MainScriptingWindow  from defconQt.objects.defcon import GlyphSet, TFont, TGlyph +from defconQt.util import platformSpecific  from defcon import Color, Component  from defconQt.spaceCenter import MainSpaceWindow  # TODO: remove globs when things start to stabilize @@ -12,7 +13,7 @@ from PyQt5.QtCore import *  from PyQt5.QtGui import *  from PyQt5.QtWidgets import *  from collections import OrderedDict -import os, pickle, traceback, sys +import os, pickle, traceback  cannedDesign = [      dict(type="cannedDesign", allowPseudoUnicode=True) @@ -677,12 +678,8 @@ class MainWindow(QMainWindow):      def openFile(self, path=None):          if not path: -            if sys.platform == "darwin": -                fileFormats = "UFO Fonts (*.ufo)" -            else: -                fileFormats = "UFO Fonts (metainfo.plist)"              path, ok = QFileDialog.getOpenFileName(self, "Open File", '', -                    fileFormats) +                    platformSpecific.fileFormats)              if not ok: return          if path:              if ".plist" in path: | 
