2009-08-26, 12:40
Turambar, thanks this is very useful. Does what it supposed to do but gives me an error window before.
minimalko Wrote:Turambar, thanks this is very useful. Does what it supposed to do but gives me an error window before.
minimalko Wrote:I used it on horizontal grouplist of options. The dialog didnt say anything specific just the regular python script loading error.
RunScript(special://skin/scripts/FixLabelWidth.py,2,3,4,99,100)
20:25:55 T:3600 M:2260860928 DEBUG: CApplication::ExecuteXBMCAction : To RunScript(special://skin/scripts/FixLabelWidth.py,2,3,4,99,100)
20:25:55 T:3600 M:2260860928 INFO: initializing python engine.
20:25:55 T:3600 M:2260860928 DEBUG: Win32DllLoader::Load(special://xbmc/system/python/python24.dll)
20:25:55 T:3600 M:2260811776 DEBUG: LoadLibraryA('MSVCR71.dll')
20:25:55 T:3600 M:2260811776 DEBUG: LoadLibrary('MSVCR71.dll') returning: 016F9C08
20:25:55 T:3600 M:2260410368 DEBUG: GetModuleFileNameA(00000000, 1E1B8FA8, 256) => 'xbmc.xbe'
20:25:55 T:3600 M:2260238336 DEBUG: LoadLibraryExA called with flags:
- LOAD_WITH_ALTERED_SEARCH_PATH
20:25:55 T:3600 M:2260238336 DEBUG: LoadLibraryA('zlib.pyd')
20:25:55 T:3600 M:2260238336 DEBUG: Win32DllLoader::Load(special://xbmc/system/python/DLLs\zlib.pyd)
20:25:55 T:3600 M:2260176896 DEBUG: LoadLibraryA('python24.dll')
20:25:55 T:3600 M:2260176896 DEBUG: LoadLibrary('python24.dll') returning: 03AEEA28
20:25:55 T:3600 M:2260176896 DEBUG: LoadLibraryA('MSVCR71.dll')
20:25:55 T:3600 M:2260176896 DEBUG: LoadLibrary('MSVCR71.dll') returning: 016F9C08
20:25:55 T:3600 M:2260176896 DEBUG: LoadLibrary('zlib.pyd') returning: 039220F8
20:25:55 T:3600 M:2259578880 DEBUG: msg: 'import site' failed; use -v for traceback
20:25:55 T:3600 M:2259578880 DEBUG: new python thread created. id=6
20:25:55 T:3600 M:2259570688 DEBUG: CApplication::ExecuteXBMCAction : Translating SetFocus(9000)
20:25:55 T:3600 M:2259570688 DEBUG: CApplication::ExecuteXBMCAction : To SetFocus(9000)
20:25:55 T:5824 M:2259570688 DEBUG: thread start, auto delete: 0
20:25:55 T:5824 M:2259570688 DEBUG: Python thread: start processing
20:25:55 T:5824 M:2259451904 DEBUG: msg: 'import site' failed; use -v for traceback
20:25:55 T:5824 M:2259447808 NOTICE: -->Python Interpreter Initialized<--
20:25:55 T:5824 M:2259447808 DEBUG: XBPyThread::Process - The source file to load is special://skin/scripts/FixLabelWidth.py
20:25:55 T:5824 M:2259427328 DEBUG: XBPyThread::Process - Setting the Python path to D:\Program Files\XBMC\skin\SkinConcept\scripts;special://xbmc/system/python/python24.zlib;special://xbmc/system/python/DLLs;special://xbmc/system/python/Lib;special://xbmc/system/python/spyce
20:25:55 T:5824 M:2259427328 DEBUG: XBPyThread::Process - Entering source directory D:\Program Files\XBMC\skin\SkinConcept\scripts
20:25:55 T:5824 M:2258690048 NOTICE: Traceback (most recent call last):
20:25:55 T:5824 M:2258690048 NOTICE: File "D:\Program Files\XBMC\skin\SkinConcept\scripts\FixLabelWidth.py", line 29, in ?
20:25:55 T:5824 M:2258690048 NOTICE: Main()
20:25:55 T:5824 M:2258690048 NOTICE: File "D:\Program Files\XBMC\skin\SkinConcept\scripts\FixLabelWidth.py", line 21, in __init__
20:25:55 T:5824 M:2258690048 NOTICE: control = currentWindow.getControl(int(id))
20:25:55 T:5824 M:2258690048 NOTICE: Exception
20:25:55 T:5824 M:2258690048 NOTICE: :
20:25:55 T:5824 M:2258690048 NOTICE: Unknown control type for python
20:25:55 T:5824 M:2258690048 ERROR: Scriptresult: Error
20:25:55 T:5824 M:2258690048 INFO: Loading skin file: DialogOK.xml
20:25:55 T:5824 M:2258685952 WARNING: Skin has invalid include: DialogBack
20:25:55 T:5824 M:2258685952 WARNING: Skin has invalid include: DialogID
20:25:55 T:5824 M:2258685952 WARNING: Skin has invalid include: DialogID
20:25:55 T:5824 M:2258685952 DEBUG: Load DialogOK.xml: 14.77ms
minimalko Wrote:I recreated the error and this is what Debug Log has to say
minimalko Wrote:Now I have changed the ids of buttons to 90161 - 9064 and it works without errors. The problem here is I need to use this on button that changes sorting of container. I havent looked into this yet but I believe its id is hardcoded?
<label>[FONT text1]text[/font]</label>
jmarshall Wrote:All these requests and noone to code them up - perhaps we need a way to make such requests official - perhaps using a trac category.