Class: Tk::Iwidgets::Watch (Ruby 2.3.4)

In Files

  • tk/lib/tkextlib/iwidgets/watch.rb

Class/Module Index [+]

Quicksearch

Tk::Iwidgets::Watch

Public Instance Methods

get()
Alias for: get_string
get_clicks()
 
               # File tk/lib/tkextlib/iwidgets/watch.rb, line 38
def get_clicks
  number(tk_call(@path, 'get', '-clicks'))
end
            
get_string()
 
               # File tk/lib/tkextlib/iwidgets/watch.rb, line 33
def get_string
  tk_call(@path, 'get', '-string')
end
            
Also aliased as: get
show(time=None)
 
               # File tk/lib/tkextlib/iwidgets/watch.rb, line 42
def show(time=None)
  tk_call(@path, 'show', time)
  self
end
            
show_now()
 
               # File tk/lib/tkextlib/iwidgets/watch.rb, line 46
def show_now
  tk_call(@path, 'show', 'now')
  self
end
            
watch(*args)
 
               # File tk/lib/tkextlib/iwidgets/watch.rb, line 51
def watch(*args)
  unless args.empty?
    tk_call(@path, 'watch', *args)
  end
  component_path('canvas')
end