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
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
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
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
#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 maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
, Ted
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
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
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
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__
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
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'
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
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
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
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
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
__
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
18 matches
Mail list logo