i really should be testing this on my local machine :)

This commit is contained in:
nebula 2025-04-23 23:03:45 +00:00
parent 9e38bbe353
commit 5891a637b9

View File

@ -126,6 +126,10 @@ class App():
self.update()
self.loop.start()
def terminate():
raise urwid.ExitMainLoop
exit(0)
class ActionBox(urwid.ListBox):
def keypress(self, size, key):
keyl = key.lower()
@ -134,7 +138,7 @@ class ActionBox(urwid.ListBox):
elif keyl == "r":
app.update()
elif keyl in ("q", "x"):
exit(0)
app.exit()
elif keyl == " ":
super().keypress(size, "page down")
elif keyl in ("j", "n", "ctrl n"):
@ -161,4 +165,4 @@ app = App()
try:
app.loop.run()
except KeyboardInterrupt:
exit(0)
app.exit()