- fixed CutOut Tool to work in legacy graphic engine

This commit is contained in:
Marius Stanciu
2019-09-22 02:52:40 +03:00
committed by Marius
parent 5a4f5dbe2f
commit 03dd0ee8b6
3 changed files with 62 additions and 17 deletions

View File

@@ -2272,7 +2272,7 @@ class FlatCAMGUI(QtWidgets.QMainWindow):
# events from the GUI are of type QKeyEvent
elif type(event) == QtGui.QKeyEvent:
key = event.key()
elif isinstance(event, mpl_key_event): # MatPlotLib key events are tricky to interpret as the rest
elif isinstance(event, mpl_key_event): # MatPlotLib key events are trickier to interpret than the rest
key = event.key
key = QtGui.QKeySequence(key)