I put a three-option menu (using QMenu add.Action) on a QPushButton (ExpensesChtBtn). In other words, when the button is manually clicked, three options appear. Is it possible to programmatically "click" the second option?

To click the button, I'm pretty sure that the following is correct:

Qt Code:
  1. self.chartsWindow.ui.ExpensesChtBtn.clicked.emit()
To copy to clipboard, switch view to plain text mode 

How do I modify this code to effectively click the second menu item on that button -- let's say the second menu item is labeled "piechart"?