My problem is quite similar to this one: Access outer class from inner class in python
I am using tkinter and need a 2|3-level tree and plan to make my code structure similar to the Ui => nested class.
class Item():
...
class BasicItem():
...
class Transports(Item):
class Bikes(Item):
class Tears(BasicItem):
class Feelings(Item):
class Tears(BasicItem):
Python complains because the classes can't be reached from the nested classes. What am I doing wrong? According to the above link, nested are no the way to go. Am I to understand that I should flatten my code and use a TransportsBikesTears class name? Thank you.
edit: A minimal example works. I will try to rewrite from a working file. edit2: This example nested in a mother-class fail.