def _build_confirm_changes_button(self, label=None, on_signal="clicked",
callback=None):
"""
Build a confirmation button used in every side bar menus.
This button triggers interaction with the backend in case of settings
changes. Otherwise it stays insensitive.
"""
if not label:
label = "Confirm"
button = Gtk.Button(label)
button.set_sensitive(False)
button.set_margin_top(12)
if callback:
button.connect(on_signal, callback)
return button
评论列表
文章目录