wml tools GUI: stop tooltips from reapparing when the associated widget is clicked

This commit is contained in:
Elvish_Hunter 2016-08-08 18:36:57 +02:00
parent b17779f8a7
commit 2a10f01fae

View file

@ -190,7 +190,8 @@ mouse pointer stays on the widget for more than 500 ms."""
else:
self.widget.bind("<Enter>",self.preshow)
self.widget.bind("<Leave>",self.hide)
self.bind_all("<Button>",self.hide)
self.widget.bind("<ButtonPress>",self.hide)
self.widget.bind("<ButtonRelease>",self.hide)
self.withdraw()
def preshow(self,event=None):
self.after_cleanup()