From 494b454c457c77ad5d4947b34105173b09b657bc Mon Sep 17 00:00:00 2001 From: mlncn Date: Sun, 2 May 2021 12:58:52 -0400 Subject: [PATCH] Take prompt and set title if prompt provided --- prompt_window.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/prompt_window.py b/prompt_window.py index de86a1f..17ce26c 100644 --- a/prompt_window.py +++ b/prompt_window.py @@ -6,7 +6,7 @@ from gi.repository import Gtk, GLib class PromptWindow(Gtk.Window): - def __init__(self, task=None): + def __init__(self, prompt=None, task=None): if task is None: task = "" @@ -41,7 +41,8 @@ class PromptWindow(Gtk.Window): vbox.pack_start(hbox, True, True, 0) - # self.set_title("Entry") + if prompt: + self.set_title(prompt) self.show_all() Gtk.main()