[Urwid] [bugreport] small problem with mouse_event() of GridFlow

Ian Ward ian at excess.org
Sun Mar 15 10:14:05 EDT 2015


Thanks, would you submit this as an issue or pull request on github?

On Wed, Mar 4, 2015 at 12:53 PM, Lukasz Grabowski <graboluk at gmail.com> wrote:
> Hi, as of urwid 1.3.0 GridFlow.mouse_event() always returns True.
>
> I think all of it should be wrapped with something like
>
> if button ==1 and event == "mouse press":
>
> (I'm implementing right click context menu which a given widget
> provides only if it replies to a right click event and was surprised
> that all my gridflows insist on displaying a context menu)
>
> Best, Lukasz
>
> _______________________________________________
> Urwid mailing list
> Urwid at lists.excess.org
> http://lists.excess.org/mailman/listinfo/urwid



More information about the Urwid mailing list