SimCutie
Warlord
- Joined
- Dec 10, 2005
- Messages
- 197
CyGTabCtrl class used in User Option screen ( "CvOptionsScreen.py" screen) seems to be changed. The argument which specifies callback handler module in API calls like attachCheckBox(), accepts
"CvOptionsScreenCallbackInterface.py" *ONLY* and does not accepts other module name.
In previous version (v1.52), We could specify other file as callback handler module. It worked well with any other python module name in "CustomAssets/python/entrypoints" folder.
But after patch 1.61, It does not work any longer. You should use "CvOptionsScreenCallbackInterface.py" as callback module in API calls like attachCheckBox().
So I had to rewrite my Custom option screen code.
Is this intentional?
"CvOptionsScreenCallbackInterface.py" *ONLY* and does not accepts other module name.
In previous version (v1.52), We could specify other file as callback handler module. It worked well with any other python module name in "CustomAssets/python/entrypoints" folder.
But after patch 1.61, It does not work any longer. You should use "CvOptionsScreenCallbackInterface.py" as callback module in API calls like attachCheckBox().
Code:
Example that works in both 1.61/1.52 :
callbackIFace = "CvOptionsScreenCallbackInterface"
tab.attachCheckBox("ClockPanelVBox", szWidgetName, szOptionDesc, callbackIFace, szCallbackFunction, szWidgetName, bClockOn)
Example that does NOT work in 1.61. But worked in v1.52 :
callbackIFace = "MyCallbackInterface"
tab.attachCheckBox("ClockPanelVBox", szWidgetName, szOptionDesc, callbackIFace, szCallbackFunction, szWidgetName, bClockOn)
Is this intentional?