Skip to content

Conversation

dtourolle
Copy link
Contributor

This is a very small change that updates the nanobind submodule to the current master (probably a bad idea, maybe a fixed version would be preferred?) and then changes some code around the Flags enum for buttons to get it working.

Why were these changes needed? The Flags enum was treated as an integer by some functions. It seems with the latests nanobind there has been some changes to the handling of enums, which meant the casting of a enum in python to an int for the bound function does not work. This is possible related to this.

The solution I found was to change the functions to accept enums and perform static_casts when int->enum is needed.

@dtourolle dtourolle changed the title Small changes to allow latest nanobind and python 3.12 support Update to latest nanobind and python 3.12 support Jun 6, 2024
@wjakob wjakob force-pushed the master branch 9 times, most recently from 654b8a5 to 1cbff2e Compare August 29, 2025 18:29
@wjakob wjakob force-pushed the master branch 18 times, most recently from 6497f59 to 2f2e29f Compare September 1, 2025 22:03
@wjakob wjakob force-pushed the master branch 7 times, most recently from c75898b to 1bbd038 Compare September 6, 2025 21:26
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