def _populate_toolbar(self, toolbar, *toolbuttons):
"""
Populate a :class:`Gtk.Toolbar` with several :class:`Gtk.ToolButton`.
.. note:: Tool buttons will be insert into ``toolbar`` following input
arguments order.
"""
for ind, toolbutton in enumerate(toolbuttons):
toolbar.insert(toolbutton, ind)
评论列表
文章目录