Call a function on both the top window, and the overlay if there is one. If the widget has a key_responder, we call the function on the responder instead.
(self, name, *args, **kwargs)
| 117 | self.stack.pop() |
| 118 | |
| 119 | def call(self, name, *args, **kwargs): |
| 120 | """ |
| 121 | Call a function on both the top window, and the overlay if there is |
| 122 | one. If the widget has a key_responder, we call the function on the |
| 123 | responder instead. |
| 124 | """ |
| 125 | getattr(self.top_window(), name)(*args, **kwargs) |
| 126 | if self.overlay: |
| 127 | getattr(self.overlay, name)(*args, **kwargs) |
| 128 | |
| 129 | |
| 130 | class Window(urwid.Frame): |
no test coverage detected