mirror of
https://github.com/gryf/wicd.git
synced 2025-12-21 21:38:06 +01:00
Fixed nonexistent get_input_nonblocking method.
This commit is contained in:
@@ -1145,9 +1145,9 @@ class appGUI():
|
|||||||
if not ui._started:
|
if not ui._started:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
input_data = ui.get_input_nonblocking()
|
input_data = ui.get_input()
|
||||||
# Resolve any "alarms" in the waiting
|
# Resolve any "alarms" in the waiting
|
||||||
self.handle_keys(input_data[1])
|
self.handle_keys(input_data)
|
||||||
|
|
||||||
# Update the screen
|
# Update the screen
|
||||||
canvas = self.frame.render((self.size), True)
|
canvas = self.frame.render((self.size), True)
|
||||||
@@ -1211,6 +1211,7 @@ def main():
|
|||||||
# This is a wrapper around a function that calls another a function that
|
# This is a wrapper around a function that calls another a function that
|
||||||
# is a wrapper around a infinite loop. Fun.
|
# is a wrapper around a infinite loop. Fun.
|
||||||
urwid.set_encoding('utf8')
|
urwid.set_encoding('utf8')
|
||||||
|
|
||||||
ui.run_wrapper(run)
|
ui.run_wrapper(run)
|
||||||
|
|
||||||
|
|
||||||
@@ -1275,20 +1276,21 @@ setup_dbus()
|
|||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
try:
|
#try:
|
||||||
parser = OptionParser(version="wicd-curses-%s (using wicd %s)" %
|
# parser = OptionParser(version="wicd-curses-%s (using wicd %s)" %
|
||||||
(CURSES_REV, daemon.Hello()),
|
# (CURSES_REV, daemon.Hello()),
|
||||||
prog="wicd-curses")
|
# prog="wicd-curses")
|
||||||
except Exception as e:
|
#except Exception as e:
|
||||||
if "DBus.Error.AccessDenied" in e.get_dbus_name():
|
# if "DBus.Error.AccessDenied" in e.get_dbus_name():
|
||||||
print(_('ERROR: wicd-curses was denied access to the wicd daemon: '
|
# print(_('ERROR: wicd-curses was denied access to the wicd daemon: '
|
||||||
'please check that your user is in the "$A" group.')
|
# 'please check that your user is in the "$A" group.')
|
||||||
.replace('$A', '\033[1;34m' + wpath.wicd_group + '\033[0m'))
|
# .replace('$A', '\033[1;34m' + wpath.wicd_group + '\033[0m'))
|
||||||
sys.exit(1)
|
# sys.exit(1)
|
||||||
else:
|
# else:
|
||||||
raise
|
# raise
|
||||||
# parser.add_option("-d", "--debug", action="store_true", dest='debug',
|
# parser.add_option("-d", "--debug", action="store_true", dest='debug',
|
||||||
# help="enable logging of wicd-curses (currently does nothing)")
|
# help="enable logging of wicd-curses (currently does nothing)")
|
||||||
|
|
||||||
|
parser = OptionParser(prog="wicd-curses")
|
||||||
(options, args) = parser.parse_args()
|
(options, args) = parser.parse_args()
|
||||||
main()
|
main()
|
||||||
|
|||||||
Reference in New Issue
Block a user