Sha256: 213c46b1c1df345a40373cac5afa5c6520ce454406bde09d52948ecf51ce20bb

Contents?: true

Size: 654 Bytes

Versions: 3

Compression:

Stored size: 654 Bytes

Contents

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

require 'tk'
require 'tkextlib/iwidgets.rb'

module Tk
  module Iwidgets
    class Pushbutton < Tk::Itk::Widget
    end
  end
end

class Tk::Iwidgets::Pushbutton
  TkCommandNames = ['::iwidgets::pushbutton'.freeze].freeze
  WidgetClassName = 'Pushbutton'.freeze
  WidgetClassNames[WidgetClassName] ||= self

  def __boolval_optkeys
    super() << 'defaultring'
  end
  private :__boolval_optkeys

  def invoke
    tk_call_without_enc(@path, 'invoke')
    self
  end

  def flash
    tk_call_without_enc(@path, 'flash')
    self
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tk-win-0.2.2-x86-mingw32 lib/tkextlib/iwidgets/pushbutton.rb
tk-win-0.2.1-x86-mingw32 lib/tkextlib/iwidgets/pushbutton.rb
tk-win-0.2.0-x86-mingw32 lib/tkextlib/iwidgets/pushbutton.rb