diff --git a/pixelocr/gui/glyphdbedit.py b/pixelocr/gui/glyphdbedit.py index e39a32c..39ed1c0 100644 --- a/pixelocr/gui/glyphdbedit.py +++ b/pixelocr/gui/glyphdbedit.py @@ -34,34 +34,34 @@ from ..image import Image class Column(object): header = None - def data(self, value): + def data(self, glyph_data): return None - def image(self, value): + def image(self, glyph_data): return None - def sortKey(self, value): - return self.data(value) + def sortKey(self, glyph_data): + return self.data(glyph_data) class TextColumn(Column): header = 'Text' - def data(self, value): - return value.text + def data(self, glyph_data): + return glyph_data.text - def image(self, value): - return value.image.qimage + def image(self, glyph_data): + return glyph_data.image.qimage class ElevationColumn(Column): header = 'Elevation' - def data(self, value): - return str(value.elevation) + def data(self, glyph_data): + return str(glyph_data.elevation) - def sortKey(self, value): - return value.elevation + def sortKey(self, glyph_data): + return glyph_data.elevation class GlyphDBModel(QAbstractTableModel):