2014-12-17, 03:50
Hello,
I am writing add-on that reads data from file and displays it on home screen. For now, I am using dummy variable i instead of file.
Problem is that when I run this script, XBMC freezes. Tried with threading, but with no success. I am planning to do car pc, and this add on should display outside temp. and average fuel consumption.
Thank you,
Nikola
I am writing add-on that reads data from file and displays it on home screen. For now, I am using dummy variable i instead of file.
Problem is that when I run this script, XBMC freezes. Tried with threading, but with no success. I am planning to do car pc, and this add on should display outside temp. and average fuel consumption.
Code:
import xbmcgui, xbmc, time
window = xbmcgui.Window(10000)
i = 0
while True:
i += 1
pod = xbmcgui.ControlLabel(window.getWidth() /2 - 130*2, 50, 130, 50, str(i), font='font24_title', textColor='0xFFFFFFFF')
window.addControl(pod)
time.sleep(1000)
window.removeControl(pod)
Thank you,
Nikola