Sophie

Sophie

distrib > Fedora > 16 > x86_64 > media > updates-src > by-pkgid > 86c2544c4ea5fadaa452b834e7aa6b7f > files > 11

wicd-1.7.0-15.fc16.src.rpm

diff -up wicd-1.7.0/curses/wicd-curses.py.orig wicd-1.7.0/curses/wicd-curses.py
--- wicd-1.7.0/curses/wicd-curses.py.orig	2012-03-21 14:20:39.808063903 -0400
+++ wicd-1.7.0/curses/wicd-curses.py	2012-03-21 14:21:04.392066581 -0400
@@ -881,7 +881,11 @@ class appGUI():
                                                 data[4], False)
             
         for k in keys:
-            if urwid.is_mouse_event(k):
+            if urwid.VERSION < (1, 0, 0):
+                check_mouse_event = urwid.is_mouse_event
+            else:
+                check_mouse_event = urwid.util.is_mouse_event
+            if check_mouse_event(k):
                 event, button, col, row = k
                 self.frame.mouse_event( self.size,
                         event, button, col, row,