function as readwrite property? #4872
Unanswered
MatthijsBurgh
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I would like to know whether it is possible to provide an std::function class member as readwrite property to python?
So I have this cpp code
I would like to do something like this in python:
Where the
check_collision
code can call theis_done
function in cpp.Is it possible to just bind this in the following way?
.def_readwrite("is_done", &collision_detection::CollisionRequest::is_done);
Beta Was this translation helpful? Give feedback.
All reactions