Re: [Tutor] Tkinter entry box text changed event

2017-04-10 Thread Phil
On Mon, 10 Apr 2017 19:40:01 +0100 Alan Gauld via Tutor wrote: > You want two parameters > self becaiuse its a method of a class so must have a self > event which is the event passsed by the GUI > So: > > def my_method(self, event): > print("method called with ",event) >

Re: [Tutor] Tkinter entry box text changed event

2017-04-10 Thread Alan Gauld via Tutor
On 10/04/17 10:18, Phil wrote: > def my_method(self.event): > print("method called") > > (self.event) is a syntax error and if I leave off "self", this is the result: You want two parameters self becaiuse its a method of a class so must have a self event which is the event passsed by the

Re: [Tutor] Tkinter entry box text changed event

2017-04-10 Thread Phil
On Mon, 10 Apr 2017 09:31:10 +0200 Peter Otten <__pete...@web.de> wrote: > entry.bind("", bye) Thank you Peter and Alan, I had tried key-press but that caused the error message shown bellow which made me think that I was not on the correct track. So in desperation, after hours of

Re: [Tutor] Tkinter entry box text changed event

2017-04-10 Thread Alan Gauld via Tutor
On 10/04/17 05:43, Phil wrote: > I would like a function to be called when I enter text > and then tab to the next entry box. One of the things about Entry boxes is that they are extremely flexible and have many event types associated with them. The consequence of this is that you as a

[Tutor] Tkinter entry box text changed event

2017-04-09 Thread Phil
Again, thank you for reading this. I would like a function to be called when I enter text and then tab to the next entry box. I've been trying to follow the answers to similar questions in Stack Overflow but I've become hopelessly confused because of the different answers given to seemingly