[QUESTION] label positioning based on prior labels - possible?
#16
Turambar, thanks this is very useful. Does what it supposed to do but gives me an error window before.
Reply
#17
What does the error window say?
Reply
#18
minimalko Wrote:Turambar, thanks this is very useful. Does what it supposed to do but gives me an error window before.

What error do you get? it's running without errors on Concrete...
Reply
#19
I used it on horizontal grouplist of options. The dialog didnt say anything specific just the regular python script loading error.
Reply
#20
minimalko Wrote:I used it on horizontal grouplist of options. The dialog didnt say anything specific just the regular python script loading error.

xbmc.log does report what's wrong there. if it doesn't with standard log, add the following to advancedsettings.xml (assuming you're using a recent svn version)

<loglevel hide="false">1</loglevel>

this will give you debug infos.
cheers,azido :;):
Reply
#21
I recreated the error and this is what Debug Log has to say
Code:
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
Reply
#22
minimalko Wrote:I recreated the error and this is what Debug Log has to say

so this is the interesting part:

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

btw: what's that skin you're using? you have include errors you should fix.
cheers,azido :;):
Reply
#23
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?

The skin is WIP, those warnings are just leftovers from Empty. Will fix those at some point.
Reply
#24
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?

think so, yes. if i were you i would place that button on 1st place and have the script working on the other buttons then.
cheers,azido :;):
Reply
#25
is it possible to add a feature to the Label Formating that allows us to use more then one font in one label?

like that:
PHP Code:
<label>[FONT text1]text[/font]</label

So i can use two $INFO[]'s in one label with different fonts.
And the second info always sitting next to the first info.
Reply
#26
Not easily, though if someone wants to do a patch I'll provide pointers.

All these requests and noone to code them up - perhaps we need a way to make such requests official - perhaps using a trac category.

Cheers,
Jonathan
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#27
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.
Laugh
Reply

Logout Mark Read Team Forum Stats Members Help
[QUESTION] label positioning based on prior labels - possible?0