in reply to Tk failed with eXceed: BadAtom

"X Error of failed request: BadAtom (invalid Atom parameter)"

I don't know what that means, but did you try this?

Perhaps this is "a pointer".

Regards, Karl

«The Crux of the Biscuit is the Apostrophe»