def __init__(self, **initstate): # some debugging code #Node.count += 1 #print " PLUS => Initializing " + str(self.__class__) + " (" + str(Node.count) + ") " + hex(id(self)) Node.__init__(self) # initialisation of non state variables self.initnonstate() # further initialize the state (the properties) self.initstate(**initstate)
def __init__(self, prefix): Node.__init__(self) self.target = None self.prefix = prefix self.icon = self.overlay_icon