mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-05 03:20:08 +01:00
Fixed integer division in Python 3
This commit is contained in:
@@ -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