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

Issue with IsQuitRequested() #4

Open
ebadi opened this issue Jan 18, 2022 · 0 comments
Open

Issue with IsQuitRequested() #4

ebadi opened this issue Jan 18, 2022 · 0 comments

Comments

@ebadi
Copy link
Owner

ebadi commented Jan 18, 2022

IsQuitRequested() returns False after ESC is pressed.

player = pyplayerbase.ScenarioPlayer(
    ["filename", "--window", "60", "60", "800", "400", "--osc", sys.argv[1]])
b = False
while not b:
    b = player.IsQuitRequested()
    print("x", b)
    player.Frame(1)
    time.sleep(1)

The ESC is registered correctly (from log messages) but not properly passed to python by pybind11.

7.000: Quit requested from viewer - probably ESC button pressed
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