Module: Tk::Bell
- Defined in:
- lib/ffi-tk/command/bell.rb
Class Method Summary collapse
-
.bell(options = {}) ⇒ Object
This command rings the bell on the display for window and returns an empty string.
Instance Method Summary collapse
Class Method Details
.bell(options = {}) ⇒ Object
This command rings the bell on the display for window and returns an empty string. If the :displayof option is omitted, the display of the application’s main window is used by default. The command uses the current bell-related settings for the display, which may be modified with programs such as xset.
If :nice is not specified, this command also resets the screen saver for the screen. Some screen savers will ignore this, but others will reset so that the screen becomes visible again.
19 20 21 22 23 24 25 26 27 |
# File 'lib/ffi-tk/command/bell.rb', line 19 def self.bell( = {}) displayof = [:displayof] nice = [:nice] args = [] args << '-displayof' << displayof if displayof args << '-nice' if nice Tk.execute_only('bell', *args) end |