[PySide] modify member assignment?
matthew.woehlke at kitware.com
Tue Jun 18 22:13:05 CEST 2013
I have a struct with a double member variable. Now, normally, from
Python I would not be allowed to assign None to this member, but I would
like to allow this (there is a special value that means 'invalid' on the
C++ side that I would like to assign if in Python the user assigns
None). Is this possible?
I think I can figure out the code injection to handle None, but I'm not
sure how (or if it is possible) to declare a member assignment on which
to hang the injection.
More information about the PySide