Fix python3 TypeError unhashable type.

A hot-fix for unhashable Button widgets for python3. A better long term approach might be to define a suitable `__hash__` method on EventDispatcher.