Class: Gtk::Table

Inherits:
Object
  • Object
show all
Defined in:
lib/Gtk.rb

Instance Method Summary collapse

Instance Method Details

#attach2(text, obj) ⇒ Object



46
47
48
49
50
51
52
# File 'lib/Gtk.rb', line 46

def attach2(text,obj)
	n=self.n_rows
	self.attach_defaults(Gtk::Label.new(text).set_xalign(0),0,1,n,n+1)
	self.attach_defaults(obj,1,2,n,n+1)
	self.n_rows=n+1
	obj
end