aboutsummaryrefslogtreecommitdiffstats
path: root/Lib/defconQt/fontView.py
diff options
context:
space:
mode:
authorAdrien Tétar2015-10-07 00:25:00 +0200
committerAdrien Tétar2015-10-07 00:25:00 +0200
commit292dc87f88f0cf888e9ff2fbe8e51b4d5ee94b5f (patch)
treece982b0fa6e54e103436b050dc61dafd5a0eb775 /Lib/defconQt/fontView.py
parent6ffc9e8ed365bdd139e9091b2b487a0f622e8e3e (diff)
downloadtrufont-292dc87f88f0cf888e9ff2fbe8e51b4d5ee94b5f.tar.bz2
glyphView: AddComponentDialog
Diffstat (limited to 'Lib/defconQt/fontView.py')
-rw-r--r--Lib/defconQt/fontView.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/Lib/defconQt/fontView.py b/Lib/defconQt/fontView.py
index 1912e39..ef91589 100644
--- a/Lib/defconQt/fontView.py
+++ b/Lib/defconQt/fontView.py
@@ -349,9 +349,9 @@ class AddGlyphDialog(QDialog):
layout.addWidget(buttonBox, l, 3)
self.setLayout(layout)
- @staticmethod
- def getNewGlyphNames(parent, currentGlyphs=None):
- dialog = AddGlyphDialog(currentGlyphs, parent)
+ @classmethod
+ def getNewGlyphNames(cls, parent, currentGlyphs=None):
+ dialog = cls(currentGlyphs, parent)
result = dialog.exec_()
sortFont = False
newGlyphNames = []
@@ -498,9 +498,9 @@ class SortDialog(QDialog):
print("Unknown descriptor name: %s", name)
return 0
- @staticmethod
- def getDescriptor(parent, sortDescriptor=None):
- dialog = SortDialog(sortDescriptor, parent)
+ @classmethod
+ def getDescriptor(cls, parent, sortDescriptor=None):
+ dialog = cls(sortDescriptor, parent)
result = dialog.exec_()
if dialog.characterSetBox.isChecked():
# TODO: dispatch csets when QSettings support lands