Anonymous
public python v1 · immutable#!/usr/bin/env pythonclass UI: def __init__(self, tree): self.x = 4class PlayerUI(UI): def __init__(self, tree=None): UI.__init__(self, tree)class Test(UI): def __init__(self, someui): self.myui = someui # Neither of these work.. print self.myui.xif __name__ == "__main__": PlayerUI() Test()