diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1998-06-05 09:54:28 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1998-06-05 09:54:28 +0000 |
commit | 5196e8609ba576021305710610b071d31777e798 (patch) | |
tree | 375c2e7a9bedbb9996f3839418093249c75240c8 /lib/tk.rb | |
parent | ebfbdcf4dffb423363965f6b41e574c69794db5f (diff) |
regex
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@234 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/tk.rb')
-rw-r--r-- | lib/tk.rb | 19 |
1 files changed, 15 insertions, 4 deletions
@@ -910,15 +910,26 @@ class TkWindow<TkObject ilist = list(tk_call('place', 'info', epath)) info = {} while key = ilist.shift - info[key[1,-1]] = ilist.shift + info[key[1..-1]] = ilist.shift + end + return info + end + + def pack_slaves() + list(tk_call('pack', 'slaves', epath)) + end + + def pack_info() + ilist = list(tk_call('pack', 'info', epath)) + info = {} + while key = ilist.shift + info[key[1..-1]] = ilist.shift end return info end def place_slaves() - list(tk_call('place', 'slaves', epath)).collect { |w| - window(w) - } + list(tk_call('place', 'slaves', epath)) end def focus |