Ejemplo n.º 1
0
 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()
Ejemplo n.º 2
0
 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()
Ejemplo n.º 3
0
 def __init__(self, parent=None, colorbar = False):
     self.colorbar = colorbar
     AlgorithmWidget.__init__(self, "Potential Field Algorithm", parent)
     self.pack_buttons()
Ejemplo n.º 4
0
 def __init__(self, parent = None, colorbar = False):
     self.colorbar = colorbar
     AlgorithmWidget.__init__(self, "Voronoi Algorithm", parent)
     self.pack_buttons()
Ejemplo n.º 5
0
 def __init__(self, parent=None, colorbar=False):
     self.colorbar = colorbar
     AlgorithmWidget.__init__(self, "Potential Field Algorithm", parent)
     self.pack_buttons()
Ejemplo n.º 6
0
 def __init__(self, parent=None, colorbar=False):
     self.colorbar = colorbar
     AlgorithmWidget.__init__(self, "Voronoi Algorithm", parent)
     self.pack_buttons()