2016-02-29, 16:26
Hello.
The XBMC I needed to screen to display lines of the text file "/storage/Soubor.txt". Keyboard shortcut run script Script.py XBMC and the screen displays the first line, second line under it, etc ...
import xbmc, xbmcgui
class MyClass(xbmcgui.WindowDialog):
def __init__(self):
self.strActionInfo = xbmcgui.ControlLabel(100, 200, 1000, 200, '', 'font14', '0xFF00FF00')
self.addControl(self.strActionInfo)
self.strActionInfo.setLabel('Prvni radek')
self.strActionInfo = xbmcgui.ControlLabel(100, 300, 1000, 200, '', 'font14', '0xFF00FF00')
self.addControl(self.strActionInfo)
self.strActionInfo.setLabel('Druhy radek')
self.strActionInfo = xbmcgui.ControlLabel(100, 400, 1000, 200, '', 'font14', '0xFF00FF00')
self.addControl(self.strActionInfo)
self.strActionInfo.setLabel('Treti radek')
mydisplay = MyClass()
mydisplay .doModal()
del mydisplay
Could anyone advise me how to place the first line so get there first (ev.second ...) line from file "/storage/Soubor.txt"
I tried it many times, but always on the screen in the information window displayed a script error Script.py.
Version 4.0.7 Generic i386
Sorry for the bad English, I translated via google translator.
Thanks.
The XBMC I needed to screen to display lines of the text file "/storage/Soubor.txt". Keyboard shortcut run script Script.py XBMC and the screen displays the first line, second line under it, etc ...
import xbmc, xbmcgui
class MyClass(xbmcgui.WindowDialog):
def __init__(self):
self.strActionInfo = xbmcgui.ControlLabel(100, 200, 1000, 200, '', 'font14', '0xFF00FF00')
self.addControl(self.strActionInfo)
self.strActionInfo.setLabel('Prvni radek')
self.strActionInfo = xbmcgui.ControlLabel(100, 300, 1000, 200, '', 'font14', '0xFF00FF00')
self.addControl(self.strActionInfo)
self.strActionInfo.setLabel('Druhy radek')
self.strActionInfo = xbmcgui.ControlLabel(100, 400, 1000, 200, '', 'font14', '0xFF00FF00')
self.addControl(self.strActionInfo)
self.strActionInfo.setLabel('Treti radek')
mydisplay = MyClass()
mydisplay .doModal()
del mydisplay
Could anyone advise me how to place the first line so get there first (ev.second ...) line from file "/storage/Soubor.txt"
I tried it many times, but always on the screen in the information window displayed a script error Script.py.
Version 4.0.7 Generic i386
Sorry for the bad English, I translated via google translator.
Thanks.