Sha256: be4f51994b9b832fc67ec2773a0021bb41ef4add03664f85333343eebd8523c1

Contents?: true

Size: 802 Bytes

Versions: 9

Compression:

Stored size: 802 Bytes

Contents

module Tk
  # A label is a widget that displays a textual string, bitmap or image.
  #
  # If text is displayed, it must all be in a single font, but it can occupy
  # multiple lines on the screen (if it contains newlines or if wrapping occurs
  # because of the wrapLength option) and one of the characters may optionally
  # be underlined using the underline option.
  #
  # The label can be manipulated in a few simple ways, such as changing its
  # relief or text.
  # Additional options may be specified to configure aspects of the label such
  # as its colors, font, text, and initial relief.
  class Label < Widget
    include Cget, Configure

    def self.tk_command; 'label'; end

    def value=(string)
      configure(text: string)
    end

    def value
      cget(:text)
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
ffi-tk-2010.08.23 lib/ffi-tk/widget/label.rb
ffi-tk-2010.08 lib/ffi-tk/widget/label.rb
ffi-tk-2010.06 lib/ffi-tk/widget/label.rb
ffi-tk-2010.03 lib/ffi-tk/widget/label.rb
ffi-tk-2010.02 lib/ffi-tk/widget/label.rb
ffi-tk-2010.01 lib/ffi-tk/widget/label.rb
ffi-tk-2010.01.02 lib/ffi-tk/widget/label.rb
ffi-tk-2009.12.14 lib/ffi-tk/widget/label.rb
ffi-tk-2009.11.29 lib/ffi-tk/widget/label.rb