浏览代码

wxGUI: font size Python 3.10 fix (#2036)

Anna Petrasova 3 年之前
父节点
当前提交
24258bf99c
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      gui/wxpython/gui_core/goutput.py

+ 1 - 1
gui/wxpython/gui_core/goutput.py

@@ -630,7 +630,7 @@ class GStc(stc.StyledTextCtrl):
             subkey='size')
         if typesize is None or int(typesize) <= 0:
             typesize = 10
-        typesize = float(typesize)
+        typesize = int(float(typesize))
 
         self.StyleDefault = 0
         self.StyleDefaultSpec = "face:%s,size:%d,fore:#000000,back:#FFFFFF" % (