mirror of
https://github.com/fishyboteso/fishyboteso.git
synced 2024-08-30 18:32:13 +00:00
fix splash screen on first boot error
This commit is contained in:
parent
f925997731
commit
74e96e4439
@ -32,8 +32,7 @@ def show(win_loc, q):
|
||||
# Position splash at the center of the main window
|
||||
|
||||
default_loc = (str(top.winfo_reqwidth()) + "+" + str(top.winfo_reqheight()) + "+" + "0" + "0")
|
||||
win_loc = win_loc.split(":")[-1]
|
||||
loc = (win_loc or default_loc).split("+")[1:]
|
||||
loc = (win_loc or default_loc).split(":")[-1].split("+")[1:]
|
||||
top.geometry("{}x{}+{}+{}".format(dim[0], dim[1], int(loc[0]) + int(dim[0] / 2), int(loc[1]) + int(dim[1] / 2)))
|
||||
|
||||
def waiting():
|
||||
|
Loading…
Reference in New Issue
Block a user