generalized method addActions in order to be more flexible in adding actions to different QtObject types
This commit is contained in:
@@ -335,12 +335,12 @@ class MainWindow(QMainWindow):
|
|||||||
def getDataWidget(self):
|
def getDataWidget(self):
|
||||||
return self.DataPlot
|
return self.DataPlot
|
||||||
|
|
||||||
def addMenuActions(self, menu, actions):
|
def addActions(self, target, actions):
|
||||||
for action in actions:
|
for action in actions:
|
||||||
if action is None:
|
if action is None:
|
||||||
menu.addSeparator()
|
target.addSeparator()
|
||||||
else:
|
else:
|
||||||
menu.addAction(action)
|
target.addAction(action)
|
||||||
|
|
||||||
def okToContinue(self):
|
def okToContinue(self):
|
||||||
if self.dirty:
|
if self.dirty:
|
||||||
|
|||||||
Reference in New Issue
Block a user