According to this tutorial, you use the set
method to both write and read from instance variables, depending on how many arguments you give it. This is just like the base Tcl set
command (though that doesn't really know about instance variables). Thus, in your case you might do:
puts [$tcp set window_]