From d4d464d400c865db869c4097bdb56c5c109149b6 Mon Sep 17 00:00:00 2001 From: Sebastian Wehling-Benatelli Date: Mon, 23 Feb 2015 14:38:26 +0100 Subject: [PATCH] generalized method addActions in order to be more flexible in adding actions to different QtObject types --- QtPyLoT.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/QtPyLoT.py b/QtPyLoT.py index 707f772b..da3bbaa9 100755 --- a/QtPyLoT.py +++ b/QtPyLoT.py @@ -335,12 +335,12 @@ class MainWindow(QMainWindow): def getDataWidget(self): return self.DataPlot - def addMenuActions(self, menu, actions): + def addActions(self, target, actions): for action in actions: if action is None: - menu.addSeparator() + target.addSeparator() else: - menu.addAction(action) + target.addAction(action) def okToContinue(self): if self.dirty: