Sha256: 0f80fa2d54ca532ef201ca22d35cb904aeb81e0d99996e79c79d34507445f9e8

Contents?: true

Size: 801 Bytes

Versions: 3

Compression:

Stored size: 801 Bytes

Contents

#
#  tkextlib/bwidget/entry.rb
#                               by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
#

require 'tk'
require 'tk/entry'
require 'tkextlib/bwidget.rb'

module Tk
  module BWidget
    class Entry < Tk::Entry
    end
  end
end

class Tk::BWidget::Entry
  include Scrollable

  TkCommandNames = ['Entry'.freeze].freeze
  WidgetClassName = 'Entry'.freeze
  WidgetClassNames[WidgetClassName] ||= self

  def __strval_optkeys
    super() << 'helptext' << 'insertbackground'
  end
  private :__strval_optkeys

  def __boolval_optkeys
    super() << 'dragenabled' << 'dropenabled' << 'editable'
  end
  private :__boolval_optkeys

  def __tkvariable_optkeys
    super() << 'helpvar'
  end
  private :__tkvariable_optkeys

  def invoke
    tk_send_without_enc('invoke')
    self
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tk-win-0.2.2-x86-mingw32 lib/tkextlib/bwidget/entry.rb
tk-win-0.2.1-x86-mingw32 lib/tkextlib/bwidget/entry.rb
tk-win-0.2.0-x86-mingw32 lib/tkextlib/bwidget/entry.rb