From 827e3f668eb6de8595b7f6dd215f2ae3a6fc2d01 Mon Sep 17 00:00:00 2001 From: weijian Date: Thu, 27 Oct 2022 18:24:03 +0800 Subject: [PATCH] fix --- mycobot_320/mycobot_320/scripts/mycobot_320_simple_gui.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mycobot_320/mycobot_320/scripts/mycobot_320_simple_gui.py b/mycobot_320/mycobot_320/scripts/mycobot_320_simple_gui.py index f1eccc6..a3626a0 100755 --- a/mycobot_320/mycobot_320/scripts/mycobot_320_simple_gui.py +++ b/mycobot_320/mycobot_320/scripts/mycobot_320_simple_gui.py @@ -30,8 +30,8 @@ class Window: self.ws = self.win.winfo_screenwidth() # width of the screen self.hs = self.win.winfo_screenheight() # height of the screen # calculate x and y coordinates for the Tk root window - x = (self.ws / 2) - 190 - y = (self.hs / 2) - 250 + x = int((self.ws / 2) - 190) + y = int((self.hs / 2) - 250) self.win.geometry("430x370+{}+{}".format(x, y)) # 布局 self.set_layout()