generalized method addActions in order to be more flexible in adding actions to different QtObject types
This commit is contained in:
parent
cc002c9460
commit
d4d464d400
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user