Merge pull request #2111 from pauldmccarthy/mnt/stattext

MNT: Coerce argument types in call to DC.DrawText
This commit is contained in:
Scott Talbert
2022-02-24 16:14:09 -05:00
committed by GitHub

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):
#----------------------------------------------------------------------