I know how to create a plain text menu item:
开发者_Go百科item = gtk.MenuItem('text')
but how can I display an icon?
Like this:
Simply use ImageMenuItem
instead of MenuItem
.
Here's an example: http://zetcode.com/tutorials/pygtktutorial/menus/
I know how to create a plain text menu item:
开发者_Go百科item = gtk.MenuItem('text')
but how can I display an icon?
Like this:
Simply use ImageMenuItem
instead of MenuItem
.
Here's an example: http://zetcode.com/tutorials/pygtktutorial/menus/
上一篇:《早安》MP3歌词-刘瑞琦?
世界上最特别的酒店?:下一篇
精彩评论