Module: Tk::Tcllib::History

Module | Tk::Tcllib::History
In: | tk/lib/tkextlib/tcllib/history.rb

### Methods

history_add history_clear history_configinfo history_configure history_get history_remove init package_name package_version remove

### Constants

PACKAGE_NAME | = | 'history'.freeze

### Public Class methods

init(entry, length=None)

[Source]

    # File tk/lib/tkextlib/tcllib/history.rb, line 36
      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()

[Source]

    # File tk/lib/tkextlib/tcllib/history.rb, line 19
        def self.package_name
          PACKAGE_NAME
        end

package_version()

[Source]

    # File tk/lib/tkextlib/tcllib/history.rb, line 23
        def self.package_version
          begin
            TkPackage.require('history')
          rescue
            ''
          end
        end

remove(entry)

[Source]

    # File tk/lib/tkextlib/tcllib/history.rb, line 41
      def self.remove(entry)
        tk_call_without_enc('::history::remove', entry.path)
        entry
      end

### Public Instance methods

history_add(text)

[Source]

    # File tk/lib/tkextlib/tcllib/history.rb, line 51
      def history_add(text)
        tk_call('::history::add', @path, text)
        self
      end

history_clear()

[Source]

    # File tk/lib/tkextlib/tcllib/history.rb, line 60
      def history_clear
        tk_call_without_enc('::history::clear', @path)
        self
      end

history_configinfo(opt)

[Source]

    # File tk/lib/tkextlib/tcllib/history.rb, line 70
      def history_configinfo(opt)
        tk_call('::history::configure', @path, opt)
      end

history_configure(opt, value)

[Source]

    # File tk/lib/tkextlib/tcllib/history.rb, line 65
      def history_configure(opt, value)
        tk_call('::history::configure', @path, opt, value)
        self
      end

history_get()

[Source]

    # File tk/lib/tkextlib/tcllib/history.rb, line 56
      def history_get
        simplelist(tk_call_without_enc('::history::get', @path))
      end

history_remove()

[Source]

    # File tk/lib/tkextlib/tcllib/history.rb, line 46
      def history_remove
        tk_call_without_enc('::history::remove', @path)
        self
      end

[Validate]