From 49105b9a72552490a9637d5e21c4b74cf5821431 Mon Sep 17 00:00:00 2001 From: Taylor Bockman Date: Mon, 12 Aug 2019 12:58:37 -0700 Subject: [PATCH] Add very basic status bar alerts --- main_window.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main_window.py b/main_window.py index 10f2f75..8b0d55d 100644 --- a/main_window.py +++ b/main_window.py @@ -61,21 +61,25 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow): self.__mode = Mode.ADD set_drawing_mode(self.__mode) self.opengl_widget.setCursor(QCursor(Qt.CursorShape.CrossCursor)) + self.status_bar.showMessage("ADD MODE") def __edit_points(self): self.__mode = Mode.EDIT set_drawing_mode(self.__mode) self.opengl_widget.setCursor(QCursor(Qt.CursorShape.CrossCursor)) + self.status_bar.showMessage("EDIT MODE") def __delete_points(self): self.__mode = Mode.DELETE set_drawing_mode(self.__mode) self.opengl_widget.setCursor(QCursor(Qt.CursorShape.PointingHandCursor)) + self.status_bar.showMessage("DELETE MODE") def __move_points(self): self.__mode = Mode.MOVE set_drawing_mode(self.__mode) self.opengl_widget.setCursor(QCursor(Qt.CursorShape.SizeAllCursor)) + self.status_bar.showMessage("MOVE MODE") @handle_exceptions def __solve_launcher(self):