Class: Swing::Label

Inherits:
Object
  • Object
show all
Includes:
AttrSetter
Defined in:
lib/swing/old/label.rb

Instance Method Summary collapse

Methods included from AttrSetter

dim_proc, included, #set_attributes

Constructor Details

#initialize(text, opts = {}, &block) ⇒ Label

Returns a new instance of Label.



9
10
11
12
# File 'lib/swing/old/label.rb', line 9

def initialize text, opts = {}, &block
  set_attributes(opts) { super(text) }
  opts[:parent].add self if opts[:parent]
end