configure(*args)
Class Public methods
def configure(win, *args)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | 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.