[wxruby-users] key press event

Dimas Cyriaco
Tue, 16 Jun 2009 05:36:08 -0000

Brad, your code worked fine for me.

Just added:
require ''rubygems''
require ''wx''
before include Wx

and changed { |ev| puts ''a key was pressed'' }
to { |ev| message_box(''a key was pressed'') }
just to make it easier to see the results