mirror of https://github.com/m-labs/artiq.git
moninj: fix pyqt6 context menu exec
This commit is contained in:
parent
d8a3da449e
commit
38e0d6b953
|
@ -847,7 +847,7 @@ class _MonInjDock(QDockWidgetCloseDetect):
|
||||||
delete_action = QtGui.QAction("Delete widget", menu)
|
delete_action = QtGui.QAction("Delete widget", menu)
|
||||||
delete_action.triggered.connect(partial(self.delete_widget, index))
|
delete_action.triggered.connect(partial(self.delete_widget, index))
|
||||||
menu.addAction(delete_action)
|
menu.addAction(delete_action)
|
||||||
menu.exec_(self.flow.mapToGlobal(pos))
|
menu.exec(self.flow.mapToGlobal(pos))
|
||||||
|
|
||||||
def delete_all_widgets(self):
|
def delete_all_widgets(self):
|
||||||
for index in reversed(range(self.flow.count())):
|
for index in reversed(range(self.flow.count())):
|
||||||
|
|
Loading…
Reference in New Issue