def _insert_as_tool_item(self, widget, pos): item = Gtk.ToolItem() item.add(widget) self.insert(item, pos) return item