mirror of
https://github.com/elephantrobotics/mycobot_ros.git
synced 2026-07-14 09:00:53 +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.ws = self.win.winfo_screenwidth() # width of the screen
|
||||||
self.hs = self.win.winfo_screenheight() # height of the screen
|
self.hs = self.win.winfo_screenheight() # height of the screen
|
||||||
# calculate x and y coordinates for the Tk root window
|
# calculate x and y coordinates for the Tk root window
|
||||||
x = (self.ws / 2) - 190
|
x = int((self.ws / 2) - 190)
|
||||||
y = (self.hs / 2) - 250
|
y = int((self.hs / 2) - 250)
|
||||||
self.win.geometry("430x370+{}+{}".format(x, y))
|
self.win.geometry("430x370+{}+{}".format(x, y))
|
||||||
# 布局
|
# 布局
|
||||||
self.set_layout()
|
self.set_layout()
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue