From bf09a8ffbbdb7d14b23d4cf4f9ee1cb31e679298 Mon Sep 17 00:00:00 2001 From: veclav talica Date: Sat, 30 Mar 2024 22:02:10 +0500 Subject: [PATCH] cleaningup of widgets --- browse.sh | 5 ----- tools/widgets/wrapper.py | 5 ----- 2 files changed, 10 deletions(-) diff --git a/browse.sh b/browse.sh index 102a535..f233de0 100755 --- a/browse.sh +++ b/browse.sh @@ -7,11 +7,6 @@ read URL articles=$(curl -s "$URL/articles.txt") -# list='' -# while IFS= read article; do -# list+="$article " -# done < <(printf '%s' "$articles") - while : do article=$(./tools/widgets/list_selector.py --desc="Select an article:" --result="line" -- $articles) diff --git a/tools/widgets/wrapper.py b/tools/widgets/wrapper.py index 82247c1..87caf9e 100644 --- a/tools/widgets/wrapper.py +++ b/tools/widgets/wrapper.py @@ -1,6 +1,5 @@ import curses import signal -import atexit import os, sys from sys import argv, exit @@ -8,9 +7,6 @@ def handler(signum, frame): curses.endwin() exit(1) -# def exit_handler(): -# curses.endwin() - init = None driver = None @@ -28,7 +24,6 @@ def curses_wrapper(screen): def widget_wrapper(p_init, p_driver): signal.signal(signal.SIGINT, handler) - # atexit.register(exit_handler) global init, driver init = p_init