Commit 5086d8bd authored by Johannes Stricker's avatar Johannes Stricker

Removed reference to deleted function setControlState and setShiftState in main_window.py.

parent b2800200
......@@ -118,26 +118,6 @@ class UiMainWindow(QtWidgets.QMainWindow):
def availableActions(self):
return self.actions
def keyPressEvent(self, QKeyEvent):
# Send signal to network manager when ctrl key is pressed in application
if QKeyEvent.key() == QtCore.Qt.Key_Control:
self.networkManager.setControlHold(True)
# Send signal to network manager when shift key is pressed in application
elif QKeyEvent.key() == QtCore.Qt.Key_Shift:
self.networkManager.setShiftHold(True)
super(UiMainWindow, self).keyPressEvent(QKeyEvent)
def keyReleaseEvent(self, QKeyEvent):
# Send signal to network manager when ctrl key is released in application
if QKeyEvent.key() == QtCore.Qt.Key_Control:
self.networkManager.setControlHold(False)
# Send signal to network manager when ctrl key is released in application
elif QKeyEvent.key() == QtCore.Qt.Key_Shift:
self.networkManager.setShiftHold(False)
super(UiMainWindow, self).keyReleaseEvent(QKeyEvent)
def showPathWarning(self):
self.warningBox = QtWidgets.QMessageBox()
self.warningBox.setText("caffe-path does not exists on your PC, please edit caffe-path in settings and restart the program")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment