aboutsummaryrefslogtreecommitdiffstats
path: root/Lib/defconQt/glyphCollectionView.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/defconQt/glyphCollectionView.py')
-rw-r--r--Lib/defconQt/glyphCollectionView.py13
1 files changed, 11 insertions, 2 deletions
diff --git a/Lib/defconQt/glyphCollectionView.py b/Lib/defconQt/glyphCollectionView.py
index c56874f..951b3c4 100644
--- a/Lib/defconQt/glyphCollectionView.py
+++ b/Lib/defconQt/glyphCollectionView.py
@@ -50,8 +50,7 @@ class GlyphCollectionWidget(QWidget):
super(GlyphCollectionWidget, self).__init__(parent)
self.setAttribute(Qt.WA_KeyCompression)
self._glyphs = []
- # TODO: hide behind a façade
- self.squareSize = 56
+ self._squareSize = 56
self._columns = 10
self._selection = set()
self._oldSelection = None
@@ -124,6 +123,16 @@ class GlyphCollectionWidget(QWidget):
index = self._lastSelectedCell
return self._glyphs[index] if index is not None else None
+ def _get_squareSize(self):
+ return self._squareSize
+
+ def _set_squareSize(self, squareSize):
+ self._squareSize = squareSize
+ voidFont.setPointSize(.425 * self.squareSize)
+
+ squareSize = property(_get_squareSize, _set_squareSize, doc="The size of"
+ "a glyph cell.")
+
def scrollArea(self):
return self._scrollArea