lib/ffi-tk/command/event.rb in ffi-tk-2010.01.02 vs lib/ffi-tk/command/event.rb in ffi-tk-2010.02
- old
+ new
@@ -58,11 +58,11 @@
#
# If the :when option is specified then it determines when the event is
# processed. Certain events, such as key events, require that the window has
# focus to receive the event properly.
def self.generate(window = None, event = None, options = {})
- Tk.execute_only(:event, :generate, window, event, options)
+ Tk.execute_only(:event, :generate, window, event, options.to_tcl_options)
end
# Returns information about virtual events.
# If the <<virtual>> argument is omitted, the return value is a list of all
# the virtual events that are currently defined.
@@ -74,6 +74,6 @@
# event sequences are not returned by event info.
def self.info(virtual = None)
Tk.execute(:event, :info, virtual).to_a
end
end
-end
\ No newline at end of file
+end