Sha256: 71d5ea096659697a759e5f2b39be88de2a3b8052280d776492bb8495e81811ce
Contents?: true
Size: 474 Bytes
Versions: 9
Compression:
Stored size: 474 Bytes
Contents
require_relative '../../helper' Tk.init describe Tk::Place do @button = Tk::Button.new('.') it 'places a widget' do Tk::Place.place(@button, y: 42, x: 24) Tk::Place.info(@button).should == { in: ".", x: 24, relx: 0.0, y: 42, rely: 0.0, width: 0, relwidth: 0.0, height: 0, relheight: 0.0, anchor: "nw", bordermode: :inside } end it 'forgets the placement' do Tk::Place.forget(@button) Tk::Place.info(@button).should == {} end end
Version data entries
9 entries across 9 versions & 1 rubygems