Re: [Tutor] Sigh first real python task

2012-09-13 Thread eryksun
On Wed, Sep 12, 2012 at 11:06 PM, Mike S mikeofm...@gmail.com wrote: try: ret = subprocess.call(smbclient //reportingmachine/Dashboard/; put %s\ -U Username%Password % (fileName), shell=True) if ret 0: print sys.stderr, Child was terminated by signal,

Re: [Tutor] Print List

2012-09-13 Thread Alan Gauld
On 13/09/12 00:36, aklei...@sonic.net wrote: To make it even more generic I would suggest replacing print(theHeader) with if theHeader: print(theHeader) to avoid a blank line if you don't need/want a header line. Good catch, yes, that would be better. -- Alan G Author of

Re: [Tutor] Sigh first real python task

2012-09-13 Thread Alan Gauld
On 13/09/12 04:06, Mike S wrote: ret = subprocess.call(smbclient //metricsmachine/reports/; put %s\ -U metrics%% % (fileName), shell=True) Isn't there a mismatched quote in there? -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/

Re: [Tutor] Musical note on python

2012-09-13 Thread D . V . N . Sarma డి . వి . ఎన్ . శర్మ
I want to thank all of you who have come forward to help me. -- regards, Sarma. On Thu, Sep 13, 2012 at 10:46 AM, D.V.N.Sarma డి.వి.ఎన్.శర్మ dvnsa...@gmail.com wrote: Yes. As far as I can see it does not contain any thing which concerns the volume of sound. -- regards, Sarma. On

[Tutor] simon game issues

2012-09-13 Thread Matthew Ngaha
Hi guys. my Python tutorial set me a task to recreate a simon game using livewires. http://www.youtube.com/watch?v=agUABjGAJww this is quite long, i understand if you can't help right away summary: i create 4 squared shaped objects(red, blue, green, yellow) as instances for a class derived from

Re: [Tutor] Musical note on python

2012-09-13 Thread Mark Lawrence
On 13/09/2012 13:29, D.V.N.Sarma డి.వి.ఎన్.శర్మ wrote: I want to thank all of you who have come forward to help me. ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Musical note on python

2012-09-13 Thread D . V . N . Sarma డి . వి . ఎన్ . శర్మ
As far as programming volume is concerned winsound.Beep has only frequency and duration. pyaudio module appears to have provision for volume control. Please refer to eryksun's post. -- regards, Sarma. On Thu, Sep 13, 2012 at 8:42 PM, Mark Lawrence breamore...@yahoo.co.ukwrote: On 13/09/2012

[Tutor] Does anyone use UML?

2012-09-13 Thread Modulok
List, Does anyone use UML (Unified Modeling Language) with python? If so, what tools do you use? Is it worth the added effort? -Modulok- ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options:

Re: [Tutor] Musical note on python

2012-09-13 Thread eryksun
On Thu, Sep 13, 2012 at 11:48 AM, D.V.N.Sarma డి.వి.ఎన్.శర్మ dvnsa...@gmail.com wrote: As far as programming volume is concerned winsound.Beep has only frequency and duration. pyaudio module appears to have provision for volume control. You should be able to add a wave header to a raw byte

[Tutor] index of elements in numpy array

2012-09-13 Thread Bala subramanian
Friends, I have a 2D matrix (a numpy array) and i am looping over each row in the matrix. I would like to know how i can find the index of each element in a while looping a row. Is there any function in numpy. Thanks -- C. Balasubramanian ___ Tutor

Re: [Tutor] index of elements in numpy array

2012-09-13 Thread Oscar Benjamin
On 13 September 2012 21:16, Bala subramanian bala.biophys...@gmail.comwrote: Friends, I have a 2D matrix (a numpy array) and i am looping over each row in the matrix. I would like to know how i can find the index of each element in a while looping a row. Is there any function in numpy. Your

Re: [Tutor] Does anyone use UML?

2012-09-13 Thread Alan Gauld
On 13/09/12 18:23, Modulok wrote: Does anyone use UML (Unified Modeling Language) with python? If so, what tools do you use? Is it worth the added effort? I use UML with most things and even in situations where I'm not writing code or developing software. It is a good general purpose

Re: [Tutor] simon game issues

2012-09-13 Thread Dave Angel
On 09/13/2012 10:07 AM, Matthew Ngaha wrote: Hi guys. my Python tutorial set me a task to recreate a simon game using livewires. http://www.youtube.com/watch?v=agUABjGAJww this is quite long, i understand if you can't help right away summary: i create 4 squared shaped objects(red, blue,

Re: [Tutor] index of elements in numpy array

2012-09-13 Thread akleider
On 13 September 2012 21:16, Bala subramanian bala.biophys...@gmail.comwrote: Friends, I have a 2D matrix (a numpy array) and i am looping over each row in the matrix. I would like to know how i can find the index of each element in a while looping a row. Is there any function in numpy.

Re: [Tutor] index of elements in numpy array

2012-09-13 Thread Dave Angel
On 09/13/2012 04:16 PM, Bala subramanian wrote: Friends, I have a 2D matrix (a numpy array) and i am looping over each row in the matrix. I would like to know how i can find the index of each element in a while looping a row. Is there any function in numpy. Thanks Perhaps you're asking a

Re: [Tutor] Musical note on python

2012-09-13 Thread D . V . N . Sarma డి . వి . ఎన్ . శర్మ
Error: name data undefined On Fri, Sep 14, 2012 at 12:33 AM, eryksun eryk...@gmail.com wrote: On Thu, Sep 13, 2012 at 11:48 AM, D.V.N.Sarma డి.వి.ఎన్.శర్మ dvnsa...@gmail.com wrote: As far as programming volume is concerned winsound.Beep has only frequency and duration. pyaudio module

Re: [Tutor] Musical note on python

2012-09-13 Thread D . V . N . Sarma డి . వి . ఎన్ . శర్మ
This worked on my computor. Thank you. It will take me sometime to digest the program. -- regards, Sarma. On Fri, Sep 14, 2012 at 12:33 AM, eryksun eryk...@gmail.com wrote: I've modified my previous script to add simple polyphonic sound. I included a basic square wave and a sawtooth wave,