mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-03-15 13:10:07 +01:00
Fixed integer division in Python 3
(cherry picked from commit 0d449626d6)
This commit is contained in:
committed by
Scott Talbert
parent
d453e92a73
commit
a6d9f71cc3
@@ -302,7 +302,7 @@ class GenStaticText(wx.Control):
|
||||
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user