Typed a long message and now it's gone?
I'm not sure what can be done with pydocs, maybe pydocs.py will need to be modified.
I have a few more questions.
1. in control.h i see your notes about getControl(), I use to be able to use:
PHP Code:
type(self.getControl(100))
it would return something like
Quote:<type 'xbmcgui.ControlLabel'>
now it returns
Quote:<type 'xbmcgui.Control'>
so i can't differentiate control types and call the correct methods.
Is this going to be changed or do i need to find some other way?
2. how do you add controls to control.h/.cpp
I get the following when using self.getControl() for the new control type ControlSpinEx.
Quote:RuntimeError: Unknown control type for python
the only files i edit are control.h/.cpp, is this the only place i need to add them. i had a PR on git before the swig change and am unable to get it to work.
3. how do you add constants to xbmcgui.
i'm using:
PHP Code:
SWIG_CONSTANT2(int,SPIN_CONTROL_TYPE_INT, CGUISpinControl::SPIN_CONTROL_TYPE_INT);
or
PHP Code:
SWIG_CONSTANT(int,SPIN_CONTROL_TYPE_INT);
which both create
PHP Code:
PyModule_AddIntConstant(module,"SPIN_CONTROL_TYPE_INT",(int)CGUISpinControl::SPIN_CONTROL_TYPE_INT);
which gives me errors
Quote: 9 IntelliSense: expected an identifier d:\development\source\xbmc\xbmc\interfaces\python\generated\addonmodulexbmcgui.cpp 14678
Error 1 error C2589: 'constant' : illegal token on right side of '::' D:\Development\source\XBMC\xbmc\interfaces\python\generated\AddonModuleXbmcgui.cpp 14678
Error 2 error C2059: syntax error : '::' D:\Development\source\XBMC\xbmc\interfaces\python\generated\AddonModuleXbmcgui.cpp 14678
if i manually change it to:
PHP Code:
PyModule_AddIntConstant(module,"SPIN_CONTROL_TYPE_INT",(int)SPIN_CONTROL_TYPE_INT);
it works.
any help, i'm lost,
thank you