2004-07-29, 23:26
hi there poet !,
a word from the novice here (at least at python for xbox, xython perhaps aka jython for java...?)
downloaded your script, and yes it got further and no it didn't run fully succesfully....but you knew that haha.. :evil:
here is the error:
it stops at line 93 where the script calls the setlabel method of the controllabel class:
there is no such thing as an tkobj at the point of calling the setlabel method. if i look at the meteo.py script i see nowhere a method call for the create method of the controllabel class, so i guess that must be going wrong here.
does your class need to have this called prior to doing something with it? if so can you make it so that it checks for existence of the tkobj and if not found then calls the create method.
just thinking outloud here... don't really know what (self, win) properties of create are supposed to do you see..
greetz mikez
:help:
------------
demarrage
traceback (most recent call last):
file "c:\program files\python 23\_xbox\xbox.media.center.v1.0.final.xbox-htb\scripts\meteo.py", line 93, in ?
c2.setlabel('prévisions météo')
file "c:\progra~1\python~1\lib\xbmcgui.py", line 326, in setlabel
self.tkobj.config(text = self.text)
attributeerror: controllabel instance has no attribute 'tkobj'
----------------
a word from the novice here (at least at python for xbox, xython perhaps aka jython for java...?)
downloaded your script, and yes it got further and no it didn't run fully succesfully....but you knew that haha.. :evil:
here is the error:
it stops at line 93 where the script calls the setlabel method of the controllabel class:
there is no such thing as an tkobj at the point of calling the setlabel method. if i look at the meteo.py script i see nowhere a method call for the create method of the controllabel class, so i guess that must be going wrong here.
does your class need to have this called prior to doing something with it? if so can you make it so that it checks for existence of the tkobj and if not found then calls the create method.
just thinking outloud here... don't really know what (self, win) properties of create are supposed to do you see..
greetz mikez
:help:
------------
demarrage
traceback (most recent call last):
file "c:\program files\python 23\_xbox\xbox.media.center.v1.0.final.xbox-htb\scripts\meteo.py", line 93, in ?
c2.setlabel('prévisions météo')
file "c:\progra~1\python~1\lib\xbmcgui.py", line 326, in setlabel
self.tkobj.config(text = self.text)
attributeerror: controllabel instance has no attribute 'tkobj'
----------------