예제 #1
0
 def update_login(read_data):
     read_data = translate_text_for_urwid(read_data)
     login_box.base_widget.set_text(read_data)
     running_jobs['login']['workers'] = 0
     for pipe in running_jobs['login']['pipe']:
         if pipe != []:
             pipe.kill()
             gc.collect()
예제 #2
0
 def update_logger(read_data):
     read_data = translate_text_for_urwid(read_data)
     logger_box.base_widget.set_text(read_data)
     main_loop.remove_watch_pipe = True
     running_jobs['logger']['workers'] = 0
     for pipe in running_jobs['logger']['pipe']:
         if pipe != []:
             pipe.kill()
             gc.collect()
예제 #3
0
 def get_quote(_loop, _data):
     quote = translate_text_for_urwid(data_random_satoshi())
     satoshi_box.base_widget.set_text(quote)
     main_loop.set_alarm_in(120, get_quote)