mirror of
https://github.com/elephantrobotics/mycobot_ros.git
synced 2026-07-05 19:47:04 +00:00
fix
This commit is contained in:
parent
9c64fa1be0
commit
827e3f668e
1 changed files with 2 additions and 2 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue