win.setTitle()
w.setTitle("text")
Changes the text in the window's titlebar.