Key press events on Canvas



Hi all,

I tried to react on keypress events over a Canvas widget. Though the
code seems right (no compiler complaints), no events are generated.
Button press/release events and Enter/Leave events work fine.

I thought the button press events might be masked out, but even
after    canvas.set_events(Gdk.EventMask.KEY_PRESS_EVENT), no events
appeared.

I'm using GooCanvas 2.0.2 (using introspection), and Python 3.4.3.

Is there any way to detect keypresses?

John


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]