cleaningup of widgets
This commit is contained in:
parent
17287cfcb3
commit
bf09a8ffbb
@ -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)
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user