aboutsummaryrefslogtreecommitdiffstats
path: root/examples/opengl/textures/textures.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/opengl/textures/textures.py')
-rw-r--r--examples/opengl/textures/textures.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/opengl/textures/textures.py b/examples/opengl/textures/textures.py
index 521c099b3..cbefe41d6 100644
--- a/examples/opengl/textures/textures.py
+++ b/examples/opengl/textures/textures.py
@@ -110,7 +110,7 @@ class GLWidget(QtOpenGL.QGLWidget):
if not GLWidget.sharedObject:
self.textures = []
for i in range(6):
- self.textures.append(self.bindTexture(QtGui.QPixmap(":/images/side%d.png" % (i + 1))))
+ self.textures.append(self.bindTexture(QtGui.QPixmap(f":/images/side{i + 1}.png")))
GLWidget.sharedObject = self.makeObject()
GLWidget.refCount += 1