开发者

GTK MenuItem with counter bubble on right

开发者 https://www.devze.com 2023-03-03 21:21 出处:网络
I want to ask if there\'s a simple way to do MenuItem like this http://dl.dropbox.com/u/865508/menuitem.png in PyGtk (or maybe some other language rather than python). I think i开发者_StackOverflow中文

I want to ask if there's a simple way to do MenuItem like this http://dl.dropbox.com/u/865508/menuitem.png in PyGtk (or maybe some other language rather than python). I think i开发者_StackOverflow中文版t would be helpful for a lot of people)

Thank you.


Yes; a MenuItem is also a Container, so you can add any widgets you like to it. Just create an empty one with gtk.MenuItem(label=None) and add an HBox with a label on the left and an icon (for the counter bubble) on the right.

0

精彩评论

暂无评论...
验证码 换一张
取 消