ugh
This commit is contained in:
parent
0b8e77cc15
commit
e9951989f9
6
bink.py
6
bink.py
@ -130,8 +130,8 @@ class App():
|
||||
self.loop.start()
|
||||
|
||||
def terminate(self):
|
||||
raise urwid.ExitMainLoop
|
||||
|
||||
raise InterruptedError
|
||||
|
||||
class ActionBox(urwid.ListBox):
|
||||
def keypress(self, size, key):
|
||||
keyl = key.lower()
|
||||
@ -166,7 +166,7 @@ class ActionBox(urwid.ListBox):
|
||||
app = App()
|
||||
try:
|
||||
app.loop.run()
|
||||
except (KeyboardInterrupt, urwid.ExitMainLoop):
|
||||
except (KeyboardInterrupt, InterruptedError):
|
||||
app.loop.stop()
|
||||
call("clear", shell=True)
|
||||
print("bye!")
|
||||
|
Loading…
x
Reference in New Issue
Block a user