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
Please login to continue.