## These cannot be run by examples() but should be OK when pasted
## into an interactive R session with the tcltk package loaded
# Creating and destroying a Tk window and inspecting the list
WinNames()
WinAdd("tt", title = "My win", pos ="-40+20")
WinNames()
tkwm.deiconify(WinGet("tt")) # Standard tcltk functions on the window
WinDel("tt")
WinNames()Run the code above in your browser using DataLab