开发者

GTK MenuItem with counter bubble on right

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜