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

Add ability to create context menus for Widget #2895

Open
hyuri opened this issue Oct 9, 2024 · 1 comment
Open

Add ability to create context menus for Widget #2895

hyuri opened this issue Oct 9, 2024 · 1 comment
Labels
enhancement New features, or improvements to existing features.

Comments

@hyuri
Copy link

hyuri commented Oct 9, 2024

What is the problem or limitation you are having?

Currently, Toga seems to provide no way for us to create context menus and associate them with certain widgets. This limits the potential to develop some more complex applications that might benefit from them — apps containing multiple panels that can be placed in different sides of the GUI, as an example, like image editors.

Describe the solution you'd like

Add ability to create context menus and assign them to certain widgets, like Boxes. It's especially useful because, since Toga doesn't provide drag and drop support yet, context menus can provide a way to add options such as "Move panel to the right/left" etc.

Describe alternatives you've considered

None

Additional context

No response

@hyuri hyuri added the enhancement New features, or improvements to existing features. label Oct 9, 2024
@freakboy3742
Copy link
Member

A reasonable request for desktop platforms; possibly with some internal overlap with #2210 (in that there's now a "scope" in which some commands are visible/available)

Some thought will need to be given to how this will manifest on mobile. There isn't really any analog of context menus on mobile; we need to be careful that we don't encourage a UX design pattern that could lead to commands being hidden from use.

The ultimate answer might end up be a straightforward "context menus are ignored on mobile"; but that needs to be a conscious decision, not an accidental one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New features, or improvements to existing features.
Projects
None yet
Development

No branches or pull requests

2 participants