Sha256: 177007123a5912ca7f882612d6c4a76cbb27c4ccffacc5af69cb2ffba52fe4af

Contents?: true

Size: 635 Bytes

Versions: 3

Compression:

Stored size: 635 Bytes

Contents

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

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

module Tk
  module Iwidgets
    class Feedback < Tk::Iwidgets::Labeledwidget
    end
  end
end

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

  def __strval_optkeys
    super() << 'barcolor'
  end
  private :__strval_optkeys

  def reset
    tk_call(@path, 'reset')
    self
  end

  def step(inc=1)
    tk_call(@path, 'step', inc)
    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/feedback.rb
tk-win-0.2.1-x86-mingw32 lib/tkextlib/iwidgets/feedback.rb
tk-win-0.2.0-x86-mingw32 lib/tkextlib/iwidgets/feedback.rb