[Tutor] searching a text file

2007-09-04 Thread Diana Hawksworth
Dear list, I have been teaching Python with minimal knowledege myself!! I need to be able to search a text file that perhaps contains names and scores. How do I find a particular name, change the score and then save the changes back to the text file again?? Thanks for any help. Diana

Re: [Tutor] Python on network problems

2006-08-15 Thread Diana Hawksworth
happens. Diana > Carroll, Barry <[EMAIL PROTECTED]> wrote: > > Hello, Diana, > > I have had a little experience with networking problems. Here's my take > on your situation. > > Regards, > > > > Date: Tue, 15 Aug 2006 11:19:35 +1000 > >

Re: [Tutor] Python on network problems

2006-08-14 Thread Diana Hawksworth
Do you have shared drives, VNC, windows terminal server? > How do you define a 'lab'? > What do you mean by python being 'active'? > And what exactly happens when a failure occurs? > > None of these things are standardised in anmy way. > > Alan G > >

Re: [Tutor] Python on network problems

2006-08-13 Thread Diana Hawksworth
: "Tom Schinckel" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, August 14, 2006 4:28 PM Subject: Re: [Tutor] Python on network problems > Diana Hawksworth wrote: >> Dear List, >> >> I have Python installed on 1 of 4 labs at my High School. The lab

[Tutor] Python on network problems

2006-08-13 Thread Diana Hawksworth
Dear List, I have Python installed on 1 of 4 labs at my High School. The lab is connected to a whole school network. Students login through the network - but Python is active in this lab only. Sometimes I have a student who simply cannot access Python, even though he has been working on it f

Re: [Tutor] guess the number game help

2005-04-30 Thread Diana Hawksworth
uot;Max Noel" <[EMAIL PROTECTED]> Cc: "Diana Hawksworth" <[EMAIL PROTECTED]>; Sent: Sunday, May 01, 2005 6:58 AM Subject: Re: [Tutor] guess the number game help > > > And if they do understand it and know how to modify it then even > if > > > t

[Tutor] guess the number game help

2005-04-30 Thread Diana Hawksworth
Hello list!   I have started teaching Python to a group of High School students. I set them the "Guess the Number" game as a GUI as an assignment. One of the students has passed in some script that is foreign to any tutorial work we have done.  Some of it is below. Does anyone recognise it

Re: [Tutor] displaying images

2005-04-18 Thread Diana Hawksworth
Thanks for that Alan. Have it working - or at least showing images on a canvas! Now just need to figure out how to get that image on an established Frame! Cheers. Diana - Original Message - From: "Alan Gauld" <[EMAIL PROTECTED]> To: "Diana Hawksworth"

Re: [Tutor] Re: Exceptions

2005-04-17 Thread Diana Hawksworth
Golden indeed, Brian! Works like a charm! Thanks heaps. Diana ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] displaying images

2005-04-17 Thread Diana Hawksworth
Ahhh! Thanks Kent. Shall give that a try. Diana - Original Message - From: "Kent Johnson" <[EMAIL PROTECTED]> To: "Diana Hawksworth" <[EMAIL PROTECTED]> Cc: Sent: Monday, April 18, 2005 11:39 AM Subject: Re: [Tutor] displaying images > Diana Hawk

[Tutor] displaying images

2005-04-17 Thread Diana Hawksworth
Hello list!  I am working through "Programming Python" by Mark Lutz. I am puzzled by the following script - as I am not certain what the "../gifs/" means, even though Lutz explains it by saying it is the reference for a GIF stored  "in another directory". I have tried to adapt it - using my

[Tutor] Re: Exceptions

2005-04-17 Thread Diana Hawksworth
Brian - thanks for your continuing help! Here is ALL of the code. Sure hope you can help. Cheers. Diana # Number 10 # A Guess the Number program # Hawksworth - 28/3/05 from Tkinter import * import random class Application(Frame): """ GUI application - guess the number game. """ def __

[Tutor] Re: Eceptions

2005-04-16 Thread Diana Hawksworth
> From: "Brian van den Broek" <[EMAIL PROTECTED]> > To: "Diana Hawksworth" <[EMAIL PROTECTED]> > Cc: > Sent: Saturday, April 16, 2005 3:14 PM > Subject: Re: [Tutor] exceptions > > Diana Hawksworth said unto

[Tutor] exceptions

2005-04-15 Thread Diana Hawksworth
Hello list,   I have been trying to trap a string entry by raising an exception.  The code follows - but the exception is never raised.  What am I doing wrong?   TIA Diana    try:        self.guess = int(self.num_ent.get())       self.num_ent.delete(0,END)   

Re: [Tutor] Entry widgets

2005-04-10 Thread Diana Hawksworth
y widgets > On Sun, 10 Apr 2005 18:07:48 +1000 > "Diana Hawksworth" <[EMAIL PROTECTED]> wrote: > > > Hello list, > > > > Is it possible to change the width of an Entry widget - or not? I am using Tkinter, GUI - and have an Entry widget that accepts a num

[Tutor] Entry widgets

2005-04-10 Thread Diana Hawksworth
Hello list,   Is it possible to change the width of an Entry widget - or not?  I am using Tkinter, GUI - and have an Entry widget that accepts a number. I just don't want it to extend the width of the column.  I have tried width =  - but get an error.   Maybe a text widget would be preferable

[Tutor] enter key

2005-04-04 Thread Diana Hawksworth
;Kent Johnson" <[EMAIL PROTECTED]>Cc: <tutor@python.org>Sent: Tuesday, April 05, 2005 7:20 AMSubject: Re: [Tutor] using the enter key> Diana Hawksworth wrote:>   > At the moment I have some user input tied to a button that allows the> > input to be "submitted&qu

[Tutor] using the enter key

2005-04-04 Thread Diana Hawksworth
Hello list!   At the moment I have some user input tied to a button that allows the input to be "submitted" and then an answer is supplied.  How can I get rid of this submit button, and have the user just press the "enter" key and have the same result happen?   TIA.  Diana ___

[Tutor] commands with multiple things to do?

2005-03-28 Thread Diana Hawksworth
Dear list!   Is it possible for me to make a command do multiple things instead of 1? For instance, I have a button that allows me to "submit" some user input (that is, show it in a window), but I also want it to count the number of times that submit button has been pressed.   I have tried th

Re: [Tutor] blocking user access

2005-03-24 Thread Diana Hawksworth
message) > Hi Diana, > > Welcome. > > Are you using IDLE? Could you provide a copy of your code? > > > Regards, > > Liam Clarke > > Still a newbie, but not as much. :) > > > On Wed, 23 Mar 2005 20:59:02 +1100, Diana Hawksworth > <[EMAIL PROTEC

[Tutor] blocking user access

2005-03-23 Thread Diana Hawksworth
Hi!  I need help on blocking user access to a message box - for example, the program could provide an answer to an input.  At the moment, the user has access to - and can type into - that "answer" space. How do I prevent that from happening please?   Diana - a very newbie! ___