Method: Gui#scroll

Defined in:
lib/gui.rb

#scrollObject

The Scrollbar to use with textfield widget



82
83
84
85
86
87
88
# File 'lib/gui.rb', line 82

def scroll
$scroll = TkScrollbar.new{command proc{|*args|
    $textfield.yview(*args)
	$textfield.yscrollcommand(proc {|first, last| $scroll.set(first, last)})
    pack('side' => 'right', 'fill' => 'y')}
	}
end