def __init__(self, parent=None): self.heuristic = naive AlgorithmWidget.__init__(self, "A* Algorithm", parent) self.combo_box = QtGui.QComboBox(parent) self.combo_box.addItems(["naive", 'manhattan', 'crow']) self.combo_box.currentIndexChanged.connect(self.select_heuristic) self.buttons.append(self.combo_box) self.pack_buttons()
def __init__(self, parent=None, colorbar = False): self.colorbar = colorbar AlgorithmWidget.__init__(self, "Potential Field Algorithm", parent) self.pack_buttons()
def __init__(self, parent = None, colorbar = False): self.colorbar = colorbar AlgorithmWidget.__init__(self, "Voronoi Algorithm", parent) self.pack_buttons()
def __init__(self, parent=None, colorbar=False): self.colorbar = colorbar AlgorithmWidget.__init__(self, "Potential Field Algorithm", parent) self.pack_buttons()
def __init__(self, parent=None, colorbar=False): self.colorbar = colorbar AlgorithmWidget.__init__(self, "Voronoi Algorithm", parent) self.pack_buttons()