Re: [Tutor] Ideas for Child's Project

2015-01-07 Thread Ted
amplifier, and free software. Presently working with this group "tutor" to add an alarm to python code. Cheers, Ted -Original Message- From: Jim Gallaher Sent: Wednesday, January 07, 2015 6:49 AM To: tutor@python.org Subject: Re: [Tutor] Ideas for Child's Project Good day Ste

Re: [Tutor] Seismometer alarm

2015-01-04 Thread Ted
be 12%, and 40 seconds. This approach may not be the way to achieve this goal, so I am open to all suggestions. Thanks, Ted import serial #Import Serial Library import time # Slows the print import winsound arduinoSerialData = serial.Serial('com7', 9600) #Create Serial port object

[Tutor] Seismometer alarm

2015-01-04 Thread Ted
On 03/01/15 19:19, Ted wrote: > Alan Thank you so much for the reply, attached is a screenshot of a > 4.9M earthquake in Challis Idaho, about 150 miles north. > this is what I need the alarm for. > > I am using Python 2.7? and Windows 7. > > 1. Should I reply-all, or

[Tutor] Seismometer alarm Python

2015-01-03 Thread Ted
percent)..Second IF, if the number/average stays above or below this average for (x number of seconds) If both conditions are met a .wav file plays on that computer. Thanks, Ted ___ Tutor maillist - Tutor@python.org To unsubscribe or change

[Tutor] 2.7.7 Initial Problem

2014-07-02 Thread Ted Gillam
#x27;s all. Any other suggestions or people I should ask? Thanks again, Ted ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

[Tutor] Please excuse and ignore prior message.

2014-07-01 Thread Ted Gillam
___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

[Tutor] Installation Aborts

2014-07-01 Thread Ted Gillam
, Ted ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Sending email as html

2008-09-05 Thread Ted Roche
Google "HTML Email is Evil" for a pretty succinct summary. -- Ted Roche Ted Roche & Associates, LLC http://www.tedroche.com ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] How to iterate and update subseqent items in list

2007-12-06 Thread ted b
Can you suggest a good way to iterate through the remainder of list and update them? Ex: Thing1.value = 0 Thing2.value = 1 Thing3.value = 0 Thing4.value = 0 Things = [Thing1, Thing2, Thing3, Thing4] I want to iterate through 'Things' and if 'Thing.value' > 0, then I want to set all values for th

[Tutor] affecting all classes if one class is affected by an event - pygame

2007-11-16 Thread ted b
t.type==pygame.QUIT: keepGoing=False allSprites.clear(screen, background) allSprites = pygame.sprite.OrderedUpdates (barrier, box1, box2) allSprites.update() allSprites.draw(screen) pygame.display.flip() if __name__ == "__main__

[Tutor] selecting elements from a list that do not meet selection criteria

2007-11-15 Thread ted b
Is there a way i can select all elements from a list that do not meet selection criteria. I want to be able to select elements that have values of, say, < 1 but only if at least one of the elements has a value of > 0. What i mean is, for example, in the code below, if one of the elements of "list

[Tutor] class accessing another's updated property

2007-11-14 Thread ted b
I want class One to be able to access access class Two's value property after its been updated. Everytime I try (by running, say testTwo().value) I get the __init__ value. The update method fro class Two is called elsewhere in the program, and I want class One's "getTwo" method to access class Two'

Re: [Tutor] sorting / outputting varibales

2007-11-01 Thread ted b
Thanks Kent, and Evert, and everyone, I really appreciate the advice on etiqutte and all your help. I will think through my questions much more thoroughly before any further inquiries and will 'reply to all' as advised. --- Kent Johnson <[EMAIL PROTECTED]> wrote: > ted b wrote

[Tutor] sorting / outputting varibales

2007-11-01 Thread ted b
If i input the following in python: var1 = 7 var2 = 9 var3 = 5 args = [var1, var2, var3] args.sort() then if if type: args the output is [5, 7, 9] but i want the output to be [var3, var1, var2] is there a function that will output the variable names in the order they

[Tutor] sorting variables

2007-10-31 Thread ted b
I am using pygame and i have three variables that i want to sort (var1, var2 and var3) and be able to refer to them later in a statement that will use them in sorted order: the statement i am using is: objSprites = pygame.sprite.OrderedUpdates(var1, var2, var3) and i want var1, var2 and var3 t

Re: [Tutor] A new Kent essay: A Brief Introduction to Beautiful Soup

2007-10-23 Thread Ted Roche
ng Beautiful Soup to parse out a couple of web pages: http://dlslug.org/pipermail/python-talk/2007-October/000639.html -- Ted Roche Ted Roche & Associates, LLC http://www.tedroche.com ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] 3 recent short essays by Kent Johnson

2007-03-28 Thread Ted Roche
hon SIG (http://www.pysig.org) and you might get the change to see Kent deliver these live as the "Kent's Korner" portion of our meetings - fourth Thursday of the month, in Manchester, NH. Details: http://www.pysig.org -- Ted Roche PySIG Rabble-Rouser __

Re: [Tutor] Python connecting to an exchange server

2007-01-24 Thread Ted Roche
I wrote some time ago (in a different programming language) has some pretty good references at the end: http://www.tedroche.com/Present/2003/OutlookAutomation.html -- Ted Roche Ted Roche & Associates, LLC http://www.tedroche.com ___ Tutor ma