I was programming with python pyqt5, and I added the code below because I wanted user to customize the toolbar. So I decided to make a dialogue to choose from the functions