MNT: Coerce argument types in call to DC.DrawText

This commit is contained in:
Paul McCarthy
2022-02-24 11:07:07 +00:00
parent 7c8318e849
commit 7f2e5b41ba

View File

@@ -303,7 +303,7 @@ class GenStaticText(wx.Control):
x = width - w
if style & wx.ALIGN_CENTER:
x = (width - w)//2
dc.DrawText(line, x, y)
dc.DrawText(line, int(x), int(y))
y += h
@@ -319,4 +319,3 @@ class GenStaticText(wx.Control):
#----------------------------------------------------------------------