Eel
Eel copied to clipboard
"geometry" can't work
Eel version latest
Describe the bug
I set geometry={'size': (350, 150), 'position': (600, 600)} in eel.start(), but it ddin't work.
import eel
import os
import random
eel.init("static", allowed_extensions=[".js", ".html"])
@eel.expose
def pick_file(folder):
if os.path.isdir(folder):
return random.choice(os.listdir(folder))
else:
return "Not a folder"
# eel.start("file_access.html", size=(350, 150), position=(300, 300)) # can work
eel.start("file_access.html", geometry={'size': (350, 150), 'position': (600, 600)}) # can't work

eel.start("file_access.html", size=(350, 150), position=(300, 300)) # can't work eel.start("file_access.html", geometry={'size': (350, 150), 'position': (600, 600)}) # can't work
FYI, the eel.start("file_access.html", geometry={'size': (350, 150), 'position': (600, 600)}) didn't work in my case but the eel.start("file_access.html", size=(350, 150), position=(300, 300)) alternative worked flawlessly. I'm using eel version 0.12.0