Browse Source

wxGUI/forms: fix Python 3.8 integer warning (#1302)

Anna Petrasova 4 years ago
parent
commit
50a0d5f627
1 changed files with 3 additions and 3 deletions
  1. 3 3
      gui/wxpython/gui_core/forms.py

+ 3 - 3
gui/wxpython/gui_core/forms.py

@@ -721,10 +721,10 @@ class TaskFrame(wx.Frame):
             scale = 0.50
         self.SetSize(
             wx.Size(
-                sizeFrame[0],
-                sizeFrame[1] + scale * max(
+                round(sizeFrame[0]),
+                round(sizeFrame[1] + scale * max(
                     self.notebookpanel.panelMinHeight,
-                    self.notebookpanel.constrained_size[1])))
+                    self.notebookpanel.constrained_size[1]))))
 
         # thread to update dialog
         # create queues