Graphics/PixmapDiagram.py

changeset 3022
57179e4cdadd
parent 3020
542e97d4ecb3
child 3034
7ce719013078
child 3058
0a02c433f52d
--- a/Graphics/PixmapDiagram.py	Mon Oct 14 20:08:19 2013 +0200
+++ b/Graphics/PixmapDiagram.py	Tue Oct 15 18:29:32 2013 +0200
@@ -152,7 +152,8 @@
             E5MessageBox.warning(
                 self,
                 self.trUtf8("Pixmap-Viewer"),
-                self.trUtf8("""<p>The file <b>{0}</b> cannot be displayed."""
+                self.trUtf8(
+                    """<p>The file <b>{0}</b> cannot be displayed."""
                     """ The format is not supported.</p>""").format(filename))
             return False
         
@@ -381,15 +382,15 @@
         painter.setPen(tc)
         painter.drawRect(marginX, marginY, width, height)
         painter.drawLine(marginX, marginY + height + 2,
-                   marginX + width, marginY + height + 2)
+                         marginX + width, marginY + height + 2)
         painter.setFont(font)
         painter.drawText(marginX, marginY + height + 4, width,
-                   fontHeight, Qt.AlignRight, s)
+                         fontHeight, Qt.AlignRight, s)
 
         # render the diagram
         size = self.pixmapLabel.pixmap().size()
         size.scale(QSize(width - 10, height - 10),  # 5 px inner margin
-            Qt.KeepAspectRatio)
+                   Qt.KeepAspectRatio)
         painter.setViewport(marginX + 5, marginY + 5,
                             size.width(), size.height())
         painter.setWindow(self.pixmapLabel.pixmap().rect())

eric ide

mercurial