Commit 4fc2338f authored by Link Mauve's avatar Link Mauve

windows.confirm: Type everything in this module.

parent 45066d0e
......@@ -7,12 +7,12 @@ class Dialog(Win):
str_accept = " Accept "
str_refuse = " Reject "
def __init__(self, helper_text, critical=False):
def __init__(self, helper_text: str, critical: bool = False) -> None:
self.text = helper_text
self.accept = False
self.critical = critical
def refresh(self):
def refresh(self) -> None:
self._win.erase()
self.addstr(self.text + "\n ")
......@@ -35,5 +35,5 @@ class Dialog(Win):
self._refresh()
def toggle_choice(self):
def toggle_choice(self) -> None:
self.accept = not self.accept
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment