Discussion:
[Urwid] [bugreport] small problem with mouse_event() of GridFlow
Lukasz Grabowski
2015-03-04 17:53:42 UTC
Permalink
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
Ian Ward
2015-03-15 14:14:05 UTC
Permalink
Thanks, would you submit this as an issue or pull request on github?
Post by Lukasz Grabowski
Hi, as of urwid 1.3.0 GridFlow.mouse_event() always returns True.
I think all of it should be wrapped with something like
(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
http://lists.excess.org/mailman/listinfo/urwid
Loading...