From 3a42fee5bb17d8b90c6dbaa56bde40f62124acc2 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 20 May 2014 13:51:36 +0530 Subject: [PATCH] ... --- src/calibre/gui2/tweak_book/live_css.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/calibre/gui2/tweak_book/live_css.py b/src/calibre/gui2/tweak_book/live_css.py index c8fc47d7e6..c23b562c09 100644 --- a/src/calibre/gui2/tweak_book/live_css.py +++ b/src/calibre/gui2/tweak_book/live_css.py @@ -82,7 +82,9 @@ class Heading(QWidget): # {{{ return QWidget.leaveEvent(self, ev) # }}} -class Cell(object): +class Cell(object): # {{{ + + __slots__ = ('rect', 'text', 'right_align', 'color_role', 'override_color') SIDE_MARGIN = 5 FLAGS = Qt.AlignVCenter | Qt.TextSingleLine | Qt.TextIncludeTrailingSpaces @@ -100,6 +102,7 @@ class Cell(object): rect.setRight(width - self.SIDE_MARGIN) painter.setPen(palette.color(self.color_role) if self.override_color is None else self.override_color) painter.drawText(rect, flags, self.text) +# }}} class Declaration(QWidget):