Events not reaching script depending on how invoked

I found part of my answer in this post:

Wayland is involved, and in that post here is the work around:

$ GDK_BACKEND=x11 python simple_event.py

Using that command I get a proper window:

There is a link in the other post. I am going to read it ti find out more about this.