Re: [Tkinter-discuss] Button event calls Leave/Enter

2019-05-16 Thread Michael Lange
Hi, On Wed, 15 May 2019 05:50:24 + Vasilis Vlachoudis wrote: > Thanks. > I did what you proposed > if event.state>=256: # then mouse event, ignore... > > Maybe a bug report should be opened in XFCE? In the X11 events it states > that Enter/LeaveNotify is only due to the cursor movement > en

Re: [Tkinter-discuss] Button event calls Leave/Enter

2019-05-15 Thread Michael Lange
Hi, On Wed, 15 May 2019 05:50:24 + Vasilis Vlachoudis wrote: > Thanks. > I did what you proposed > if event.state>=256: # then mouse event, ignore... > > Maybe a bug report should be opened in XFCE? In the X11 events it states > that Enter/LeaveNotify is only due to the cursor movement > en

Re: [Tkinter-discuss] Button event calls Leave/Enter

2019-05-14 Thread Vasilis Vlachoudis
lis From: Tkinter-discuss [tkinter-discuss-bounces+vasilis.vlachoudis=cern...@python.org] on behalf of Michael Lange [klappn...@web.de] Sent: Tuesday, May 14, 2019 18:26 To: tkinter-discuss@python.org Subject: Re: [Tkinter-discuss] Button event calls Leave/Enter Hi, On Tue, 14

Re: [Tkinter-discuss] Button event calls Leave/Enter

2019-05-14 Thread Michael Lange
Hi, On Tue, 14 May 2019 13:53:54 + Vasilis Vlachoudis wrote: > Thanks all for your replies. > I've saw that there is a difference in the event.state, but I cannot > find any information on what each bit represents. > I modified your leave() callback using the values given at: https://infoho

Re: [Tkinter-discuss] Button event calls Leave/Enter

2019-05-14 Thread Vasilis Vlachoudis
lf of mkie...@web.de [mkie...@web.de] Sent: Monday, May 13, 2019 19:32 To: tkinter-discuss@python.org Subject: Re: [Tkinter-discuss] Button event calls Leave/Enter Hello, >very strange. Maybe an issue with the WM? Do you also use Xfce? Did you >(or Vasilis) try a different WM? To add some

Re: [Tkinter-discuss] Button event calls Leave/Enter

2019-05-13 Thread Michael Lange
Hi, On Mon, 13 May 2019 17:32:10 - mkie...@web.de wrote: > Hello, > > >very strange. Maybe an issue with the WM? Do you also use Xfce? Did you > >(or Vasilis) try a different WM? > > To add some data about used WMs, not reproducible on: > Python 3.5.3 (some small tkinter patches) > tcl/tk 8.6

Re: [Tkinter-discuss] Button event calls Leave/Enter

2019-05-13 Thread mkiever
Hello, >very strange. Maybe an issue with the WM? Do you also use Xfce? Did you >(or Vasilis) try a different WM? To add some data about used WMs, not reproducible on: Python 3.5.3 (some small tkinter patches) tcl/tk 8.6.6 debian stretch ctwm Regards, Matthias ---

Re: [Tkinter-discuss] Button event calls Leave/Enter

2019-05-13 Thread Michael Lange
On Mon, 13 May 2019 10:27:12 +0200 Paul Malherbe wrote: > Yes, definitely seems to be an xfce thing. Tried with gnome and worked > fine. Good to know that. Unfortunately this does not help much with the OP's question :-( Maybe some property of the event could be checked, if there is a difference

Re: [Tkinter-discuss] Button event calls Leave/Enter

2019-05-13 Thread Paul Malherbe
Title: signature Hi Yes, definitely seems to be an xfce thing. Tried with gnome and worked fine. Regards Paul Malherbe Tartan Systems Phone +27(0)82 900

Re: [Tkinter-discuss] Button event calls Leave/Enter

2019-05-13 Thread Michael Lange
Hi, On Mon, 13 May 2019 08:19:58 +0200 Paul Malherbe wrote: > Same happens on Ubuntu 18.04 with python 2.7.15/3.6.7 and tcl/tk 8.6.8 very strange. Maybe an issue with the WM? Do you also use Xfce? Did you (or Vasilis) try a different WM? Regards Michael .-.. .. ...- . .-.. --- -. --. .-

Re: [Tkinter-discuss] Button event calls Leave/Enter

2019-05-13 Thread Paul Malherbe
kinter-discuss@python.org Subject: Re: [Tkinter-discuss] Button event calls Leave/Enter Hi Michael, I am using Ubuntu 19.04 with python 3.7 and tk 8.6.9+1 Vasilis Vlachoudis Dep EN, CERN CH-1211 GEN

Re: [Tkinter-discuss] Button event calls Leave/Enter

2019-05-12 Thread engelbert gruber
hon.org] on behalf of Vasilis Vlachoudis [ > vasilis.vlachou...@cern.ch] > Sent: Sunday, May 12, 2019 19:49 > To: Michael Lange; tkinter-discuss@python.org > Subject: Re: [Tkinter-discuss] Button event calls Leave/Enter > > Hi Michael, > > I am using Ubuntu 19.04 > with python

Re: [Tkinter-discuss] Button event calls Leave/Enter

2019-05-12 Thread Vasilis Vlachoudis
Subject: Re: [Tkinter-discuss] Button event calls Leave/Enter Hi Michael, I am using Ubuntu 19.04 with python 3.7 and tk 8.6.9+1 Vasilis Vlachoudis Dep EN, CERN CH-1211 GENEVA 23 SWITZERLAND Phone: +41-22 767 9851 GSM:+41-75 411 4378 From: Tkinter

Re: [Tkinter-discuss] Button event calls Leave/Enter

2019-05-12 Thread Vasilis Vlachoudis
...@python.org] on behalf of Michael Lange [klappn...@web.de] Sent: Saturday, May 11, 2019 00:57 To: tkinter-discuss@python.org Subject: Re: [Tkinter-discuss] Button event calls Leave/Enter Hi, On Thu, 9 May 2019 07:58:42 + Vasilis Vlachoudis wrote: > Hi all, > > I've just rea

Re: [Tkinter-discuss] Button event calls Leave/Enter

2019-05-10 Thread Michael Lange
Hi, On Thu, 9 May 2019 07:58:42 + Vasilis Vlachoudis wrote: > Hi all, > > I've just realized that the mouse click event generates as > well a followed by event before. what system are you using and which version of Tcl/Tk? I cannot reproduce that behavior here (Debian, Tk 8.6.6). Regard

[Tkinter-discuss] Button event calls Leave/Enter

2019-05-09 Thread Vasilis Vlachoudis
Hi all, I've just realized that the mouse click event generates as well a followed by event before. With the program below, if one clicks in the frame you get the messages printed Leave event Enter event Button1 pressed Which I don't understand the reasoning behind. However it generates a probl