I have a script that creates a window with UI. It seems like any button actions that try to reference any global functions or other classes defined in the script get erased.
I get errors like NoneType is not callable.
My guess is the functions or classes get destroyed some how.
The really weird thing is I can't even create static methods in the class that is kept around that drives the UI. I can call nonstatic methods on all of the existing objects that are kept around though.
Is there any solution at all or do I have to just not use any static methods? I can see this making certain things impossible, like creating new instances of a class during some kind of UI action.
created
Nov '15
last reply
Nov '15
- 1
reply
- 1.5k
views
- 1
user
- 1
link