- simplifying the UI for the Milling Tool when in 'Beginner' mode

- Milling UI - clicking the 'Beginner/Advanced' top button will switch the application mode for the current tool(this change need to be propagated everywhere a 'Beginner' mode is needed)
This commit is contained in:
Marius Stanciu
2020-12-09 16:59:03 +02:00
committed by Marius Stanciu
parent 5a6271be09
commit c1fdf2d8e8
4 changed files with 253 additions and 50 deletions

View File

@@ -3476,6 +3476,9 @@ class FCTable(QtWidgets.QTableWidget):
def setupContextMenu(self):
self.setContextMenuPolicy(QtCore.Qt.ActionsContextMenu)
def removeContextMenu(self):
self.setContextMenuPolicy(QtCore.Qt.NoContextMenu)
def addContextMenu(self, entry, call_function, icon=None):
action_name = str(entry)
action = QtWidgets.QAction(self)