Graphics/PixmapDiagram.py

changeset 3020
542e97d4ecb3
parent 2992
dbdf27746da5
child 3022
57179e4cdadd
equal deleted inserted replaced
3019:7912530a33e2 3020:542e97d4ecb3
147 @param filename name of the file to be shown (string) 147 @param filename name of the file to be shown (string)
148 @return flag indicating success (boolean) 148 @return flag indicating success (boolean)
149 """ 149 """
150 image = QImage(filename) 150 image = QImage(filename)
151 if image.isNull(): 151 if image.isNull():
152 E5MessageBox.warning(self, 152 E5MessageBox.warning(
153 self,
153 self.trUtf8("Pixmap-Viewer"), 154 self.trUtf8("Pixmap-Viewer"),
154 self.trUtf8("""<p>The file <b>{0}</b> cannot be displayed.""" 155 self.trUtf8("""<p>The file <b>{0}</b> cannot be displayed."""
155 """ The format is not supported.</p>""").format(filename)) 156 """ The format is not supported.</p>""").format(filename))
156 return False 157 return False
157 158

eric ide

mercurial