Eel icon indicating copy to clipboard operation
Eel copied to clipboard

"geometry" can't work

Open thep0y opened this issue 5 years ago • 2 comments

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

thep0y avatar Oct 20 '20 03:10 thep0y

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

passariello avatar Oct 24 '20 06:10 passariello

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

stoufa avatar Aug 07 '23 10:08 stoufa