In this recipe, we will add a second menu item to our GUI. We will use the Designer and then regenerate the UI code. After that, we will attach functionality to the menu item from our modular Python module. The Designer has certain capabilities so that it can add this functionality as well, but here, we are simply keeping the UI code separated from the functionality of our GUI.
Adding another menu item to our menu bar
Getting ready
You will need to have the UI code from the previous recipes available. All the other recipes' prerequisites apply to this recipe as well.