From 8f263c16dc2693198ebc8d58042fdaf03c43c5ab Mon Sep 17 00:00:00 2001 From: Andrew Psaltis Date: Sun, 22 Mar 2009 19:25:19 -0400 Subject: [PATCH] Changed the clock in wicd-curses.py to update every 0.9 seconds. --- curses/wicd-curses.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/curses/wicd-curses.py b/curses/wicd-curses.py index 7d01658..7dcf8d4 100755 --- a/curses/wicd-curses.py +++ b/curses/wicd-curses.py @@ -218,7 +218,7 @@ def help_dialog(body): ('bold',' O'),": Set up Ad-hoc network\n", ('bold',' ->'),": Configure selected network\n", ('bold',' A'),": Display 'about' dialog\n", -('bold',' Q'),": Quit wicd-curses\n", +('bold',' F8 q Q'),": Quit wicd-curses\n", ]) textF = urwid.Text('Press any key to return.') @@ -1013,7 +1013,8 @@ def run(): gobject.idle_add(app.update_ui) # Update the connection status on the bottom every 1.5 s. gobject.timeout_add(2000,app.update_status) - gobject.timeout_add(1000,app.update_time) + # This will make sure that it is updated on the second. + gobject.timeout_add(900,app.update_time) # DEFUNCT: Terminate the loop if the UI is terminated. #gobject.idle_add(app.stop_loop) loop.run()