-
-
Notifications
You must be signed in to change notification settings - Fork 689
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
Non main windows cannot be closed properly. #2122
Comments
Confirmed that the window not closing behavior when clicked on the close button in the upper right corner with the mouse, is fixed by #2112. |
I believe this is a duplicate of #1872, fixed by #1877. This bug existed in v0.3.1, but I can't reproduce this problem with the current main branch. However, that only applies to the Windows version of the problem. Android doesn't support opening secondary windows, so anything going on there isn't a bug. |
On Windows, use 'on_close=lambda _: True' has been tested and passed, but Android is still not working properly, that is, pressing the back key on the second window cannot return to MainWindow. |
And I'm saying that is by design. At present, Toga's Android backed does not support creating additional windows after the main window. Whether there might possibly be an interpretation of "Window" that might make sense, the current implementation does not support it. |
But my product needs to achieve the effect I mentioned above, what should I do? |
As it stands, the feature doesn't exist. That means your options are:
Any feature in Toga is a wrapper around the native system capabilities; so the approach for step 2 or 3 will use the same techniques that Toga is using currently - that is, the Chaquopy bridge layer. |
Describe the bug
Here is a test code I wrote that creates a multi window program, but it has very strange situations:
Steps to reproduce
See above.
Expected behavior
If it works normally, it should be when we click the close button in the upper right corner of window1 and window2 that the current window can be closed and returned to the main window.
On Android, it should close the current page and return to the previous page when pressing the back key, rather than an empty page.
Screenshots
No response
Environment
Logs
Additional context
No response
The text was updated successfully, but these errors were encountered: