From 0d449626d6d298ad96ebd1d514d0e42833bce470 Mon Sep 17 00:00:00 2001 From: Carolina Feher da Silva Date: Tue, 16 Nov 2021 01:24:31 +0000 Subject: [PATCH] Fixed integer division in Python 3 --- wx/lib/stattext.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wx/lib/stattext.py b/wx/lib/stattext.py index 2cfb6e65a..e606e5a89 100644 --- a/wx/lib/stattext.py +++ b/wx/lib/stattext.py @@ -302,7 +302,7 @@ def OnPaint(self, event): if style & wx.ALIGN_RIGHT: x = width - w if style & wx.ALIGN_CENTER: - x = (width - w)/2 + x = (width - w)//2 dc.DrawText(line, x, y) y += h