IconEditor/IconEditorWindow.py

changeset 414
8c91e942d2da
parent 96
9624a110667d
child 453
a81097a85889
diff -r 3d82e6eb3516 -r 8c91e942d2da IconEditor/IconEditorWindow.py
--- a/IconEditor/IconEditorWindow.py	Tue Jul 27 12:33:08 2010 +0200
+++ b/IconEditor/IconEditorWindow.py	Tue Jul 27 12:44:19 2010 +0200
@@ -1177,7 +1177,7 @@
         @param x x-coordinate (integer)
         @param y y-coordinate (integer)
         """
-        self.__sbPos.setText("%d, %d" % (x + 1, y + 1))
+        self.__sbPos.setText("{0:d}, {1:d}".format(x + 1, y + 1))
     
     def __updateSize(self, w, h):
         """
@@ -1186,14 +1186,14 @@
         @param w width of the icon (integer)
         @param h height of the icon (integer)
         """
-        self.__sbSize.setText("%d x %d" % (w, h))
+        self.__sbSize.setText("{0:d} x {1:d}".format(w, h))
     
     def __updateZoom(self):
         """
         Private slot to show the current zoom factor.
         """
         zoom = self.__editor.zoomFactor()
-        self.__sbZoom.setText("%d %%" % (zoom * 100, ))
+        self.__sbZoom.setText("{0:d} %".format(zoom * 100))
         self.zoomOutAct.setEnabled(self.__editor.zoomFactor() > 1)
     
     def __zoomIn(self):

eric ide

mercurial