4
gi.require_version("Gtk", "3.0")
5
from gi.repository import Gtk
7
class GtkUI (ui.UIFactory):
9
super (GtkUI, self).__init__()
15
def confirm_action (self, prompt, confirmation_id, prompt_kwargs):
16
dialog = Gtk.MessageDialog (
18
message_type=Gtk.MessageType.INFO,
19
buttons=Gtk.Buttons.YES_NO,
22
dialog.format_secondary_text (prompt)
23
response = dialog.run ()
25
if (response == Gtk.ResponseType.YES):