[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

Re: [Tutor] Funtions, modules & global variables

2011-09-25 Thread Alan Gauld
On 26/09/11 00:21, questions anon wrote: Hi All, I am trying to move from writing one long script each time I need to do a new thing but I do not quite understand how functions work, even after reading many manuals. Can you be more specific about what you dpn;t understand. For example can you

Re: [Tutor] Funtions, modules & global variables

2011-09-25 Thread Dave Angel
On 09/25/2011 07:21 PM, questions anon wrote: Hi All, I am trying to move from writing one long script each time I need to do a new thing but I do not quite understand how functions work, even after reading many manuals. My first attempt is to create a python file where I have defined a number of

[Tutor] Funtions, modules & global variables

2011-09-25 Thread questions anon
Hi All, I am trying to move from writing one long script each time I need to do a new thing but I do not quite understand how functions work, even after reading many manuals. My first attempt is to create a python file where I have defined a number of functions that get data in various ways. I have