Start settingup buttons

This commit is contained in:
Chris Pham
2018-03-17 14:25:38 -07:00
parent 9dc8bf4b7a
commit 4b31146d0e

View File

@@ -26,9 +26,15 @@ class WaypointsCoordinator(QtCore.QThread):
def connect_signals_and_slots(self): def connect_signals_and_slots(self):
self.new_manual_waypoint_entry.connect(self.update_manual_entry) self.new_manual_waypoint_entry.connect(self.update_manual_entry)
# setting up signals to save for Navigation Table
self.
self.navigation_label.cellClicked.connect(self._on_nav_clicked) self.navigation_label.cellClicked.connect(self._on_nav_clicked)
self.landmark_label.cellClicked.connect(self.__on_land_clicked) self.landmark_label.cellClicked.connect(self.__on_land_clicked)
def update_manual_entry(self, name, lat, lng, table):
print "write things"
def _on_nav_clicked(self, row, col): def _on_nav_clicked(self, row, col):
self.update_waypoint_entry.emit( self.update_waypoint_entry.emit(
self.navigation_label.item(row, 0), self.navigation_label.item(row, 0),
@@ -44,3 +50,4 @@ class WaypointsCoordinator(QtCore.QThread):
self.landmark_label.item(row, 2), self.landmark_label.item(row, 2),
1 1
) )