Python – popup menu in wxPython
In this article we are going to know how can we create a popupmenu in wxPython. We will write a code when we click right on screen a popup menu will show up with menu items names as ‘one’ and ‘two’.
Syntax :wx.Window.PopupMenu(self, menu, pos)
Parameter Input Type Description menu wx.Menu Menu in popupmenu. point wx.Point point of popup menu.
Code Example :
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course. And to begin with your Machine Learning Journey, join the Machine Learning – Basic Level Course