Sha256: c6487d084bc70be9e7025ef314052a9d8e74a53d5be365a0cbc17f71b18805e2
Contents?: true
Size: 772 Bytes
Versions: 21
Compression:
Stored size: 772 Bytes
Contents
--- :wxEventBlocker: :detail: :pre: :programlisting: - :pattern: !ruby/regexp /.*/ :replace: | ```ruby class MyWindow ... def do_something # block all events directed to this window Wx::EventBlocker.blocked_for(self) do # while we do 1000 function_that_sends_events calls 1000.times { |i| function_that_sends_events(i) } end # old event handler restored; generated event(s) from next call will be processed function_that_sends_events(0) end ... end ```
Version data entries
21 entries across 21 versions & 1 rubygems