Skip to content
Snippets Groups Projects
Commit 201856b9 authored by Kien Le's avatar Kien Le
Browse files

Connect button signals

parent d3dc774f
No related branches found
No related tags found
1 merge request!53Implement a dialog to plot and export GPS data
This commit is part of merge request !53. Comments created here will be created in the context of that merge request.
......@@ -9,6 +9,10 @@ class GPSWidget(PlottingWidget):
def __init__(self, parent, tracking_box):
super().__init__(parent, tracking_box)
@QtCore.Slot()
def plot_gps(self):
pass
class GPSDialog(QtWidgets.QWidget):
def __init__(self, parent, gps_points):
......@@ -24,6 +28,7 @@ class GPSDialog(QtWidgets.QWidget):
self.setLayout(main_layout)
main_layout.setContentsMargins(5, 5, 5, 5)
main_layout.setSpacing(0)
self.plotting_widget = GPSWidget(
self, self.info_text_browser)
main_layout.addWidget(self.plotting_widget, 2)
......@@ -34,13 +39,16 @@ class GPSDialog(QtWidgets.QWidget):
button_layout.setSpacing(10)
self.read_button = QtWidgets.QPushButton('Read/Plot', self)
self.read_button.clicked.connect(self.plotting_widget.plot_gps)
button_layout.addWidget(self.read_button)
self.export_button = QtWidgets.QPushButton('Export', self)
self.export_button.clicked.connect(self.export_gps_points)
button_layout.addWidget(self.export_button)
self.close_button = QtWidgets.QPushButton('Close', self)
self.close_button.setStyleSheet('QPushButton {color: red;}')
self.close_button.clicked.connect(self.close)
button_layout.addWidget(self.close_button)
bottom_layout = QtWidgets.QVBoxLayout()
......@@ -53,6 +61,9 @@ class GPSDialog(QtWidgets.QWidget):
bottom_layout.addWidget(self.info_text_browser)
main_layout.addLayout(bottom_layout)
def export_gps_points(self):
pass
if __name__ == '__main__':
app = QtWidgets.QApplication(sys.argv)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment