make child widget get the input keypress with urwid on python
问题 I can make a widget inside another widget, as example an urwid.Frame father could have as body an urwid.Pile widget as child. In this situation, the father should process some input keys when the child have to treat some specific others keys. Like in this functional example: import urwid class NewFrame(urwid.Frame): def __init__(self, givenBody): super().__init__(urwid.Filler(givenBody, "top")) def keypress(self, size, key): if key in ('f'): print("We are in NewFrame object") return super