Skip to content

Hamburger Menu#9

Closed
AdwaithBatchu wants to merge 6 commits intor3kste:mainfrom
AdwaithBatchu:context-menu-3d
Closed

Hamburger Menu#9
AdwaithBatchu wants to merge 6 commits intor3kste:mainfrom
AdwaithBatchu:context-menu-3d

Conversation

@AdwaithBatchu
Copy link
Collaborator

PR summary

PR checklist

@github-actions github-actions bot removed the GUI: wx label Feb 2, 2026
@r3kste r3kste self-requested a review February 3, 2026 04:48
Copy link
Owner

@r3kste r3kste left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't run the code yet, but the implementation still needs a change.

Also, It would be easier for both us if you properly finish with one backend, before going for others.

Comment on lines +958 to +960
self._view_menu.add_command(label="XY Plane", command=lambda: set_view(90, -90))
self._view_menu.add_command(label="XZ Plane", command=lambda: set_view(0, -90))
self._view_menu.add_command(label="YZ Plane", command=lambda: set_view(0, 0))
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is wrong. As we had discussed, backends should not have any reference to the view_init function.

Reasoning: As you can see, this needs defining the draw lambda and using them for all backends. But ideally this should be done in a backend independent way. If in the future, someone wants to add another action to the hamburger menu, all backends need a change. That is not acceptable.

Similar to how we defined context_menu to be used for any labels and actions, I think it would be better if a similar thing is implemented here.

Comment on lines +1561 to +1565
if self.get_navigate_mode() is not None:
# we don't want to rotate if we are zooming/panning
# from the toolbar
return

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change seems unnecessary?

@r3kste
Copy link
Owner

r3kste commented Feb 3, 2026

Now that I notice, create a new branch and therefore a new PR on this fork. There is no need to use the old context_menu branch. I am closing this PR for now.

@r3kste r3kste closed this Feb 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants