2005-08-18, 21:30
hello,
i am quiet new into python scripting. after reading some docs i've tried to create a script for reading a (notepad) text file containing tabs (it's a sorted list). this is a code fragment:
f = open(rootdir + "list.txt")
data = f.read()
self.test = xbmcgui.controltextbox(50, 130, 670, 400, "font12", "0xffffffff")
self.addcontrol(self.test)
self.test.settext(data)
self.setfocus(self.test)
when i start the script in xbmc i'll see the textfile in the controlbox,but all the tabs are replaced with a strange block character and the text is not lined up. am i doing something wrong? please help.
regards,
marc
i am quiet new into python scripting. after reading some docs i've tried to create a script for reading a (notepad) text file containing tabs (it's a sorted list). this is a code fragment:
f = open(rootdir + "list.txt")
data = f.read()
self.test = xbmcgui.controltextbox(50, 130, 670, 400, "font12", "0xffffffff")
self.addcontrol(self.test)
self.test.settext(data)
self.setfocus(self.test)
when i start the script in xbmc i'll see the textfile in the controlbox,but all the tabs are replaced with a strange block character and the text is not lined up. am i doing something wrong? please help.
regards,
marc