aboutsummaryrefslogtreecommitdiffstats
path: root/Lib/defconQt/groupsView.py
diff options
context:
space:
mode:
authorAdrien Tétar2015-06-10 09:03:44 +0200
committerAdrien Tétar2015-06-10 09:03:44 +0200
commit68df4237592fe9734f69d95b0bc188fc324298c0 (patch)
tree0debe71565ffa230937e52a973c045cd51c2b1d0 /Lib/defconQt/groupsView.py
parenta3e850579db6258a468d96a4a68719864b3b161f (diff)
downloadtrufont-68df4237592fe9734f69d95b0bc188fc324298c0.tar.bz2
fontView: add sorting window, display dirty glyph status; various other fixes
Diffstat (limited to 'Lib/defconQt/groupsView.py')
-rw-r--r--Lib/defconQt/groupsView.py14
1 files changed, 5 insertions, 9 deletions
diff --git a/Lib/defconQt/groupsView.py b/Lib/defconQt/groupsView.py
index 6308bb4..aa22282 100644
--- a/Lib/defconQt/groupsView.py
+++ b/Lib/defconQt/groupsView.py
@@ -110,13 +110,10 @@ class GroupsWindow(QWidget):
self.removeGroupButton = QPushButton("−", self)
self.removeGroupButton.clicked.connect(self._groupDelete)
- self.alignLeftBox = QCheckBox("Align left", self)
- self.alignRightBox = QCheckBox("Align right", self)
- alignGroup = QButtonGroup(self)
- alignGroup.addButton(self.alignLeftBox)
- alignGroup.addButton(self.alignRightBox)
+ self.alignLeftBox = QRadioButton("Align left", self)
+ self.alignRightBox = QRadioButton("Align right", self)
self.alignLeftBox.setChecked(True)
- alignGroup.buttonClicked[int].connect(self._alignmentChanged)
+ self.alignLeftBox.toggled.connect(self._alignmentChanged)
self.scrollArea = QScrollArea(self)
self.characterWidget = GroupCharacterWidget(self.font, scrollArea=self.scrollArea, parent=self)
@@ -136,9 +133,8 @@ class GroupsWindow(QWidget):
self.setWindowTitle("%s%s%s%s" % ("Groups window – ", self.font.info.familyName, " ", self.font.info.styleName))
- def _alignmentChanged(self, id):
- # identifiers are numbered as: -2, -3, etc.
- alignRight = bool(-id-2)
+ def _alignmentChanged(self):
+ alignRight = self.alignRightBox.isChecked()
self.stackWidget.setAlignment(alignRight)
def _groupAdd(self):