Browse Source

Fix implicit float to int conversion raising DeprecationWarning

pull/589/head
Johan Pauwels 4 years ago
committed by Chris
parent
commit
436308104f
1 changed files with 2 additions and 2 deletions
  1. 4
      gooey/gui/util/wx_util.py

4
gooey/gui/util/wx_util.py

@ -51,7 +51,7 @@ def withColor(statictext, hex):
def h0(parent, label):
text = wx.StaticText(parent, label=label)
font_size = text.GetFont().GetPointSize()
font = wx.Font(font_size * 1.4, *styles['h0'])
font = wx.Font(int(font_size * 1.4, *styles['h0']))
text.SetFont(font)
return text
@ -67,7 +67,7 @@ def h2(parent, label):
def _header(parent, label, styles):
text = wx.StaticText(parent, label=label)
font_size = text.GetFont().GetPointSize()
font = wx.Font(font_size * 1.2, *styles)
font = wx.Font(int(font_size * 1.2), *styles)
text.SetFont(font)
return text

Loading…
Cancel
Save