Jesus Jesus wrote:
> i need to remove close,restore and minimize buttons from tk toplevel

require 'tk'
$root=TkRoot.new{}
$toplevel=TkToplevel.new($root)
$toplevel.transient($root)
$toplevel.protocol('WM_DELETE_WINDOW', proc{Tk::messageBox :message 
=>"$root says '$toplevel belongs to me'"})
Tk.mainloop

-- 
Posted via http://www.ruby-forum.com/.