diff --git a/ext/tk/lib/tk.rb b/ext/tk/lib/tk.rb index 7de4cd5f24..6bae4d8f42 100644 --- a/ext/tk/lib/tk.rb +++ b/ext/tk/lib/tk.rb @@ -4830,16 +4830,18 @@ class TkPanedWindow 0 tk_call(@t.path, 'window', 'configure', @index, *hash_kv(slot)) end else - @id = value if slot == 'window' || slot == :window + if slot == 'window' || slot == :window + @id = value + value = @id.epath if @id.kind_of?(TkWindow) + end if slot == 'create' || slot == :create self.create=value else @@ -1228,8 +1274,9 @@ class TkTextWindow