class UI: def __init__(self, tree): self.w = GladeWidgetTree(tree) class PlayerUI(Player, UI): def __init__(self, conf=None, conn=None, tree=None): UI.__init__(self, tree) class Test: # how to reference self.w from class UI?