printrun-src/printrun/gui/bufferedcanvas.py

changeset 46
cce0af6351f0
parent 15
0bbb006204fc
--- a/printrun-src/printrun/gui/bufferedcanvas.py	Tue Jan 19 20:45:09 2021 +0100
+++ b/printrun-src/printrun/gui/bufferedcanvas.py	Wed Jan 20 10:15:13 2021 +0100
@@ -90,7 +90,7 @@
         self.Refresh()
 
     def getWidthHeight(self):
-        width, height = self.GetClientSizeTuple()
+        width, height = self.GetClientSize()
         if width == 0:
             width = 1
         if height == 0:
@@ -103,7 +103,7 @@
 
     def onPaint(self, event):
         # Blit the front buffer to the screen
-        w, h = self.GetClientSizeTuple()
+        w, h = self.GetClientSize()
         if not w or not h:
             return
         else:

mercurial