Browse Source

UI handler stubs

tb-init-ui-render
Taylor Bockman 5 years ago
parent
commit
8f77bfc280
  1. 31
      main_window.py

31
main_window.py

@ -14,3 +14,34 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow):
def __init__(self, parent=None):
super(MainWindow, self).__init__(parent)
self.setupUi(self)
# -------------------------------------
# UI Handlers
# -------------------------------------
self.action_add_points.triggered.connect(self.__add_points)
self.action_edit_points.triggered.connect(self.__edit_points)
self.action_delete_points.triggered.connect(self.__delete_points)
self.action_solve.triggered.connect(self.__solve_launcher)
# TODO: These handlers should probably be broken out into classes
# Such as "GraphicsDrawer", etc that implements these functions
# in isolation so this file remains relatively clean aside from
# the UI hooks to the functions above.
def __add_points(self):
print("ADDING POINT MODE ENABLED!")
def __edit_points(self):
print("EDITING POINT MODE ENABLED!")
def __delete_points(self):
print("DELETE POINT MODE ENABLED!")
def __solve_launcher(self):
"""
Launched the solve menu. This function will call into a subclass
of the solve dialog widget from the UI.
TODO: Write the subclass once you know the parameters for the
solve window.
"""
print("LAUNCHING SOLVE DIALOG...")

Loading…
Cancel
Save