开发者

Toolbar button style

开发者 https://www.devze.com 2023-01-02 01:27 出处:网络
I create toolbar with gtkuimanager in my gtk+ application. How can i change style o开发者_Python百科f toolbar button?

I create toolbar with gtkuimanager in my gtk+ application. How can i change style o开发者_Python百科f toolbar button?

Thank you.


    #   set a vertical toolbar to the left
    self.tools   = gtk.Toolbar()
    toolbar_item = gtk.ToolButton()
    toolbar_item.set_stock_id(gtk.STOCK_APPLY)
    toolbar_item.set_label("Show Levels")
    toolbar_item.show()
    self.tools.insert(toolbar_item, -1)
    self.tools.set_orientation(gtk.ORIENTATION_VERTICAL)
    containerH.pack_start(self.tools, False, False, 0)
0

精彩评论

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