TypeError occurs when self.button=None in MouseEvents
Merge pull request #2399 from dimkal/master

TypeError occurs when self.button=None in MouseEvents