Re: [Tutor] My code works but it is a little bit broken.

2011-09-27 Thread brandon w
That was my problem. I had the "insert" function. I don't know why I did not see that before or why I even put that in there. Thank you for your help once again. On Tue, Sep 27, 2011 at 6:43 AM, Alan Gauld wrote: > On 27/09/11 02:32, brandon w wrote: > >> The fields take the initial value and mul

Re: [Tutor] My code works but it is a little bit broken.

2011-09-27 Thread Alan Gauld
On 27/09/11 02:32, brandon w wrote: The fields take the initial value and multiply it to get the amount. The problem in in the callback function. It uses the event to clear a field, but when the mouse enters a second time it adds a numeric value. This is a semantic error. It is not doing what I

Re: [Tutor] My code works but it is a little bit broken.

2011-09-26 Thread brandon w
The fields take the initial value and multiply it to get the amount. The problem in in the callback function. It uses the event to clear a field, but when the mouse enters a second time it adds a numeric value. This is a semantic error. It is not doing what I want it to do. On Mon, Sep 26, 2011 a

Re: [Tutor] My code works but it is a little bit broken.

2011-09-26 Thread Alan Gauld
On 26/09/11 03:25, brandon w wrote: This code calculates money. The problem is that in the first field after the mouse enters a second time updates itself with the value from the last field. I don't want it to do that. I think that the problem is in the "callback" method. I haven't gone throug

[Tutor] My code works but it is a little bit broken.

2011-09-25 Thread brandon w
This code calculates money. The problem is that in the first field after the mouse enters a second time updates itself with the value from the last field. I don't want it to do that. I think that the problem is in the "callback" method. #!/usr/bin/python from Tkinter import * root = Tk() root.t