You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The WeakrefCallable class implemented in #2066 appears to be a faulty one. As such the items in the app menu do not work when clicked on. Moreover, the weakref.ref() calls added to the different places also appears to be problematic. The event handlers wrapped in weakref also do not fire.
Steps to reproduce
Clone the latest main branch of the toga repository.
Install the cloned repo.
Create a default helloworld project in briefcase.
Run the project in dev mode.
Try to click on the menu items like "Exit".
The handlers attached to the menu items won't fire.
Expected behavior
The app menu items like "Exit" should fire their attached handlers.
Screenshots
No response
Environment
Operating System: Windows 11
Python version: 3.10.6
Software versions:
Briefcase: Latest
Toga: Latest from the main branch
...
Logs
Additional context
No response
The text was updated successfully, but these errors were encountered:
I can't find any other event handlers that aren't working - they should all be tested by the testbed test suite. Menus and toolbars fell through the cracks because they're tested as part of toga.App, which is what #2075 will add tests for.
If you've got any examples of events that aren't working, let us know and we can investigate - but it's almost certainly the same cause as the menu/toolbar issue.
Describe the bug
The WeakrefCallable class implemented in #2066 appears to be a faulty one. As such the items in the app menu do not work when clicked on. Moreover, the weakref.ref() calls added to the different places also appears to be problematic. The event handlers wrapped in weakref also do not fire.
Steps to reproduce
Expected behavior
The app menu items like "Exit" should fire their attached handlers.
Screenshots
No response
Environment
Logs
Additional context
No response
The text was updated successfully, but these errors were encountered: