cleaningup of widgets

This commit is contained in:
veclav talica 2024-03-30 22:02:10 +05:00
parent 17287cfcb3
commit bf09a8ffbb
2 changed files with 0 additions and 10 deletions

View File

@ -7,11 +7,6 @@ read URL
articles=$(curl -s "$URL/articles.txt") articles=$(curl -s "$URL/articles.txt")
# list=''
# while IFS= read article; do
# list+="$article "
# done < <(printf '%s' "$articles")
while : while :
do do
article=$(./tools/widgets/list_selector.py --desc="Select an article:" --result="line" -- $articles) article=$(./tools/widgets/list_selector.py --desc="Select an article:" --result="line" -- $articles)

View File

@ -1,6 +1,5 @@
import curses import curses
import signal import signal
import atexit
import os, sys import os, sys
from sys import argv, exit from sys import argv, exit
@ -8,9 +7,6 @@ def handler(signum, frame):
curses.endwin() curses.endwin()
exit(1) exit(1)
# def exit_handler():
# curses.endwin()
init = None init = None
driver = None driver = None
@ -28,7 +24,6 @@ def curses_wrapper(screen):
def widget_wrapper(p_init, p_driver): def widget_wrapper(p_init, p_driver):
signal.signal(signal.SIGINT, handler) signal.signal(signal.SIGINT, handler)
# atexit.register(exit_handler)
global init, driver global init, driver
init = p_init init = p_init