Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When built by pyinstaller , it can't drag by using element Selector. #1587

Open
xiaofengsoft opened this issue Jan 27, 2025 · 0 comments
Open

Comments

@xiaofengsoft
Copy link

Environments

Vue3+Python+Pywebview+Pyinstaller

Main Code

main_window = webview.create_window(
        "PostSync",
        url=f'{c.APP_HTTP}://{c.APP_HOST}:{c.APP_PORT}',
        frameless=True,
        zoomable=False,
        draggable=True,
        resizable=True,
        easy_drag=False,
        width=c.config['view']['width'],
        height=c.config['view']['height'],
    )
    webview.DRAG_REGION_SELECTOR = '#app > section > header > div > div > ul'
    c.main_window = main_window
    threading.Thread(target=flask_run, daemon=True).start()

Problem

The Selector is configured correctly , and when I drag with dev environment it's OK, But When I use Pyinstaller to build , the .exe file can't drag with top bar (the Selector refer to).

20250127-0202-27.4708460.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant