configure

configure(*args)
Class Public methods

def configure(win, *args)

if args[-1].kind_of?(Hash)
  opts = args.pop
else
  opts = {}
end
params = []
# params.push((win.kind_of?(TkObject))? win.epath: win)
params.push(_epath(win))
args.each{|win|
  # params.push((win.kind_of?(TkObject))? win.epath: win)
  params.push(_epath(win))
}
opts.each{|k, v|
  params.push("-#{k}")
  # params.push((v.kind_of?(TkObject))? v.epath: v)
  params.push(_epath(v))
}
tk_call_without_enc("pack", 'configure', *params)

end

pack

doc_ruby_on_rails
2015-06-07 00:59:55
Comments
Leave a Comment

Please login to continue.