Browse Source

Add very basic status bar alerts

tb-init-ui-render
Taylor Bockman 5 years ago
parent
commit
49105b9a72
  1. 4
      main_window.py

4
main_window.py

@ -61,21 +61,25 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow):
self.__mode = Mode.ADD self.__mode = Mode.ADD
set_drawing_mode(self.__mode) set_drawing_mode(self.__mode)
self.opengl_widget.setCursor(QCursor(Qt.CursorShape.CrossCursor)) self.opengl_widget.setCursor(QCursor(Qt.CursorShape.CrossCursor))
self.status_bar.showMessage("ADD MODE")
def __edit_points(self): def __edit_points(self):
self.__mode = Mode.EDIT self.__mode = Mode.EDIT
set_drawing_mode(self.__mode) set_drawing_mode(self.__mode)
self.opengl_widget.setCursor(QCursor(Qt.CursorShape.CrossCursor)) self.opengl_widget.setCursor(QCursor(Qt.CursorShape.CrossCursor))
self.status_bar.showMessage("EDIT MODE")
def __delete_points(self): def __delete_points(self):
self.__mode = Mode.DELETE self.__mode = Mode.DELETE
set_drawing_mode(self.__mode) set_drawing_mode(self.__mode)
self.opengl_widget.setCursor(QCursor(Qt.CursorShape.PointingHandCursor)) self.opengl_widget.setCursor(QCursor(Qt.CursorShape.PointingHandCursor))
self.status_bar.showMessage("DELETE MODE")
def __move_points(self): def __move_points(self):
self.__mode = Mode.MOVE self.__mode = Mode.MOVE
set_drawing_mode(self.__mode) set_drawing_mode(self.__mode)
self.opengl_widget.setCursor(QCursor(Qt.CursorShape.SizeAllCursor)) self.opengl_widget.setCursor(QCursor(Qt.CursorShape.SizeAllCursor))
self.status_bar.showMessage("MOVE MODE")
@handle_exceptions @handle_exceptions
def __solve_launcher(self): def __solve_launcher(self):

Loading…
Cancel
Save