toplevel .mainWindow creates a new (presumably 2nd) window whose [red]path[/red] is ".mainWindow".
wm title .mainWindow would change the name of the window whose path is ".mainWindow" to something if you specified an argument, say, wm title .mainWindow "your name here"
_________________
Bob Rashkin
rrashkin@csc.com