summaryrefslogtreecommitdiff
path: root/urwid/main_loop.py
diff options
context:
space:
mode:
Diffstat (limited to 'urwid/main_loop.py')
-rwxr-xr-xurwid/main_loop.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/urwid/main_loop.py b/urwid/main_loop.py
index 75972c3..5d3be1f 100755
--- a/urwid/main_loop.py
+++ b/urwid/main_loop.py
@@ -116,7 +116,7 @@ class MainLoop(object):
self._unhandled_input = unhandled_input
self._input_filter = input_filter
- if not hasattr(screen, 'get_input_descriptors'
+ if not hasattr(screen, 'hook_event_loop'
) and event_loop is not None:
raise NotImplementedError("screen object passed "
"%r does not support external event loops" % (screen,))
@@ -311,7 +311,7 @@ class MainLoop(object):
if self.handle_mouse:
self.screen.set_mouse_tracking()
- if not hasattr(self.screen, 'get_input_descriptors'):
+ if not hasattr(self.screen, 'hook_event_loop'):
return self._run_screen_event_loop()
self.draw_screen()