Posts: 6
Joined: Oct 2024
Reputation:
0
hi
i'm trying to get a edit control label from python script but i can't find any info about this.
can anybody give me a hint?
Thanks for your reply.
Posts: 6
Joined: Oct 2024
Reputation:
0
thank you for your reply,
but can you give me the correkt python statement for getting a value from the skin (an edit control label text)?
Thanks for your reply.
Posts: 6
Joined: Oct 2024
Reputation:
0
hi,
now i tested a little bit, but with no 100% luck...
case 1:
---------
xml:
<control type="edit" id="55">
<label>$INFO[Window.Property(searchcriteria)]</label>
python:
xbmcgui.Window(xbmcgui.getCurrentWindowId()).setProperty('searchcriteria','fakenews')
...
searchcriteria = xbmcgui.Window(xbmcgui.getCurrentWindowId()).getProperty('searchcriteria')
-> i can read the value i have written before
case 2:
---------
xml:
<control type="edit" id="55">
<label>fakenews</label>
python:
suchkriterien = xbmcgui.Control.getLabel(55)
-> 'xbmcgui.Control' has no attribute 'getLabel'
Posts: 6
Joined: Oct 2024
Reputation:
0
sorry, forgot to say:
the value that i could write/read in case 1 is not the value which i enter in the ui ;-(