def add_node(self, nodemodel, color = 'BLUE'):
        n = node_view(nodemodel, color)
        self.node_dict[nodemodel] = n
        nodemodel.Bind(net_model.LED_CHANGED, self.DispatchEvent, self.node_state_changed)
        n.Update()