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