Sha256: da2088f122e27e184441405a37bc6c6ca0c8b6eb0d60a6225e198b8b3fb323b2

Contents?: true

Size: 633 Bytes

Versions: 3

Compression:

Stored size: 633 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_as_gem-0.1.0 ext/lib/tkextlib/iwidgets/feedback.rb
tk_as_gem-0.0.1 ext/lib/tkextlib/iwidgets/feedback.rb
tk_as_gem-0.0.0 ext/lib/tkextlib/iwidgets/feedback.rb