[Urwid] mouse_event to keypress

Ian Ward ian at excess.org
Fri Feb 15 11:12:22 EST 2013

On Fri, Feb 15, 2013 at 11:08 AM, Angel Kolev <meneldor at gmail.com> wrote:
> Sorry i meant urwid.Edit. I wrapped it as:
>> class BaseInput(urwid.Edit):
>>       super(BaseInput, self).__init__(.....
> So i want to initiate a keypress trough a mouse_event. Something like:
> self.__super.keypress(size,"down")

I see.  Well, it's the ListBox that does the scrolling, so that's the
thing you should be subclassing.

Your approach should work fine.


More information about the Urwid mailing list