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()
|
self.loop.start()
|
||||||
|
|
||||||
def terminate(self):
|
def terminate(self):
|
||||||
raise urwid.ExitMainLoop
|
raise InterruptedError
|
||||||
|
|
||||||
class ActionBox(urwid.ListBox):
|
class ActionBox(urwid.ListBox):
|
||||||
def keypress(self, size, key):
|
def keypress(self, size, key):
|
||||||
keyl = key.lower()
|
keyl = key.lower()
|
||||||
@ -166,7 +166,7 @@ class ActionBox(urwid.ListBox):
|
|||||||
app = App()
|
app = App()
|
||||||
try:
|
try:
|
||||||
app.loop.run()
|
app.loop.run()
|
||||||
except (KeyboardInterrupt, urwid.ExitMainLoop):
|
except (KeyboardInterrupt, InterruptedError):
|
||||||
app.loop.stop()
|
app.loop.stop()
|
||||||
call("clear", shell=True)
|
call("clear", shell=True)
|
||||||
print("bye!")
|
print("bye!")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user