Hi all
I have a trouble with getting the list of
The error are highlight on this line:
I have a trouble with getting the list of
self.channel
when I am trying to get the list of strings from my another script called test.py
. In player.py when I have input import test
, I am getting an error: AttributeError: type object 'MyClass' has no attribute 'channel' when I try to run the scripts.The error are highlight on this line:
self.channel = test.MyClass.channel()in test.py it show:
from player import MyPlayer class MyClass(xbmcgui.WindowXML): def __init__(self, *args, **kwargs): self.channel = list()in player.py:
import test class MyPlayer(xbmcgui.WindowXML): def __init__(self, *args, **kwargs): self.channel = test.MyClass.channel()I want to get access to the
self.channel
from test.py to get the list of strings. Can you please show me how I could get access to the self.channel
from the test.py script to get the list of strings??