Module: Tk::Tcllib::History (Ruby 2.3.4)

In Files

  • tk/lib/tkextlib/tcllib/history.rb

Class/Module Index [+]

Quicksearch

Tk::Tcllib::History

Constants

PACKAGE_NAME

Public Class Methods

init(entry, length=None)
 
               # File tk/lib/tkextlib/tcllib/history.rb, line 37
def self.init(entry, length=None)
  tk_call_without_enc('::history::init', entry.path, length)
  entry.extend(self)  # add methods to treat history to the entry widget
end
            
package_name()
 
               # File tk/lib/tkextlib/tcllib/history.rb, line 20
def self.package_name
  PACKAGE_NAME
end
            
package_version()
 
               # File tk/lib/tkextlib/tcllib/history.rb, line 24
def self.package_version
  begin
    TkPackage.require('history')
  rescue
    ''
  end
end
            
remove(entry)
 
               # File tk/lib/tkextlib/tcllib/history.rb, line 42
def self.remove(entry)
  tk_call_without_enc('::history::remove', entry.path)
  entry
end
            

Public Instance Methods

history_add(text)
 
               # File tk/lib/tkextlib/tcllib/history.rb, line 52
def history_add(text)
  tk_call('::history::add', @path, text)
  self
end
            
history_clear()
 
               # File tk/lib/tkextlib/tcllib/history.rb, line 61
def history_clear
  tk_call_without_enc('::history::clear', @path)
  self
end
            
history_configinfo(opt)
 
               # File tk/lib/tkextlib/tcllib/history.rb, line 71
def history_configinfo(opt)
  tk_call('::history::configure', @path, opt)
end
            
history_configure(opt, value)
 
               # File tk/lib/tkextlib/tcllib/history.rb, line 66
def history_configure(opt, value)
  tk_call('::history::configure', @path, opt, value)
  self
end
            
history_get()
 
               # File tk/lib/tkextlib/tcllib/history.rb, line 57
def history_get
  simplelist(tk_call_without_enc('::history::get', @path))
end
            
history_remove()
 
               # File tk/lib/tkextlib/tcllib/history.rb, line 47
def history_remove
  tk_call_without_enc('::history::remove', @path)
  self
end