I know how to create a plain text menu item:
item = gtk.MenuItem('text')
but how can i display the icon?
Like this:
Just use ImageMenuIteminstead MenuItem.
ImageMenuItem
MenuItem
Here is an example: http://zetcode.com/tutorials/pygtktutorial/menus/
Source: https://habr.com/ru/post/1777778/More articles:Android Listview Horizontal - javaHow to rotate OpenGL to suit iPhone landscape mode? - c ++ListView content scrambled in scroll - androidЗахват исключения из исходного кода в Javascript? - javascriptHow to ensure that the MAPI client receives focus when it starts? - winapiGetting object executing java.security.PrivilegedAction at runtime - javaхорошие примеры модели-view-controller - iphoneHow to make a chrome plugin - google-chromeWhy should a return type be specified for a function when it is called in C? - cF # - how can I index a collection (in particular PropertyCollection) - f #All Articles