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

Refactor canvas widgets #36

Merged
merged 17 commits into from
Oct 12, 2022
Merged

Refactor canvas widgets #36

merged 17 commits into from
Oct 12, 2022

Conversation

liamhuber
Copy link
Member

@liamhuber liamhuber commented Sep 4, 2022

Todo:

  • Play around with on_double_click to get it working too (for now probably just on nodes as a shortcut for hitting the display button, but I want the infrastructure there and working).
  • Handle the display of the node interface (inputs etc) better. Mostly I want to see it get cleared when the owning node is deleted.

No new functionality, just behind-the-scenes stuff on the pseudo-widgets that live in the canvas. Control flow is handled better by calling on_click methods of each of the relevant widgets themselves, and the widget OOP structure is (IMO) a bit clearer and more extensible.

New functionality: double clicking on a node deletes it, analogous to how double clicking on empty space places a new node.

@liamhuber liamhuber changed the title WIP: Refactor canvas widgets Refactor canvas widgets Sep 6, 2022
Base automatically changed from refactor_rename_files to main October 12, 2022 19:21
@liamhuber liamhuber marked this pull request as ready for review October 12, 2022 19:21
@liamhuber liamhuber merged commit 4dfda3e into main Oct 12, 2022
@liamhuber liamhuber deleted the refactor_canvas_widgets branch October 12, 2022 19:21
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

Successfully merging this pull request may close these issues.

1 participant