[Tutor] Traffic Light

2013-01-19 Thread anthonym
ple Inc. build 5577)] on darwin Type "copyright", "credits" or "license()" for more information. >>> ==== RESTART >>> Traceback (most recent call last): File "/Users/anthonym/Downloads/pybook/Traffic Light Tony.py", li

Re: [Tutor] Traffic Light

2013-01-19 Thread anthonym
on why I don't see my shape on the canvass? Thanks, Tony On 1/19/13 1:02 PM, "Alan Gauld" wrote: >On 19/01/13 20:31, anthonym wrote: > >> rbRed = Radiobutton(frame1, text = "Red", bg = "red", >>

Re: [Tutor] Traffic Light

2013-01-19 Thread anthonym
process below once I figure that out def processRadiobutton(self): pass Trafficlight() On 1/19/13 3:14 PM, "Matthew Ngaha" wrote: >On Sat, Jan 19, 2013 at 10:56 PM, anthonym wrote: >> Thanks again for the info Alan. I am still p

[Tutor] Calculate hours

2013-01-22 Thread anthonym
Hello All, I originally wrote this program to calculate and print the employee with the most hours worked in a week. I would now like to change this to calculate and print the hours for all 8 employees in ascending order. The employees are named employee 0 - 8 Any ideas? Thanks, Tony Code bel

Re: [Tutor] Calculate hours

2013-01-22 Thread anthonym
Thanks Dave I think I would like to keep it simple. How would I get it to repeat and print before deleting? On 1/22/13 7:10 PM, "Dave Angel" wrote: >On 01/22/2013 09:52 PM, anthonym wrote: >> Hello All, >> >> I originally wrote this program to calculate an

Re: [Tutor] Calculate hours

2013-01-23 Thread anthonym
. Tony On 1/23/13 3:05 PM, "Dave Angel" wrote: >You posted this privately to me. It should have been a message to the >forum, with tutor@python.org as its to: field. > >On 01/23/2013 10:42 AM, anthonym wrote: >> Should the outside loop have a print command

[Tutor] lambda

2013-01-25 Thread anthonym
Hello All, I have the code below that I used to create a simple tic tac toe game for class. I am learning Python but have programmed in C+ before so I brought over a lambda and found that it worked in Python. Unfortunately I don't think my classmates will understand the use of lambda here but I

Re: [Tutor] lambda

2013-01-25 Thread anthonym
Thanks Alan. I prefer the lambda too. Especially given how much code I saved. I forgot about i and j being dynamic and the call function. On 1/25/13 4:14 PM, "Alan Gauld" wrote: >On 25/01/13 23:57, anthonym wrote: > >> I don't think my classmates will understand t