mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-06 20:10:08 +01:00
MNT: Coerce argument types in call to DC.DrawText
This commit is contained in:
@@ -303,7 +303,7 @@ class GenStaticText(wx.Control):
|
|||||||
x = width - w
|
x = width - w
|
||||||
if style & wx.ALIGN_CENTER:
|
if style & wx.ALIGN_CENTER:
|
||||||
x = (width - w)//2
|
x = (width - w)//2
|
||||||
dc.DrawText(line, x, y)
|
dc.DrawText(line, int(x), int(y))
|
||||||
y += h
|
y += h
|
||||||
|
|
||||||
|
|
||||||
@@ -319,4 +319,3 @@ class GenStaticText(wx.Control):
|
|||||||
|
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user