On 12/09/2012 08:47, Dwight Hutto wrote:
So the following would be the script, except the ability to change
specific values such as frequency with a scroll widget.

import os

#Variables for system call

command_line_app_for sound = "speaker-test"
frequency =  " --frequency 2000"
length_of_sound_ms = " --period 5000"
test_type = " --test sine"

#System call with variables placed in

os.system( command_line_app_for sound + frequency + length_of_sound_ms
+ test_type)


Extremely useful if and only if this is what the OP wants. I prefer working to facts and not assumptions, plus the full context of previous messages.

--
Cheers.

Mark Lawrence.

_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
  • [Tutor] Music... D . V . N . Sarma డి . వి . ఎన్ . శర్మ
    • Re: [Tut... Dwight Hutto
    • Re: [Tut... Mark Lawrence
      • Re: ... Dwight Hutto
        • ... Mark Lawrence
          • ... Dwight Hutto
            • ... Dwight Hutto
              • ... Mark Lawrence
                • ... Dwight Hutto
                • ... Dwight Hutto
                • ... Dwight Hutto
                • ... Mark Lawrence
                • ... D . V . N . Sarma డి . వి . ఎన్ . శర్మ
                • ... Alan Gauld
                • ... D . V . N . Sarma డి . వి . ఎన్ . శర్మ
                • ... D . V . N . Sarma డి . వి . ఎన్ . శర్మ
                • ... Mark Lawrence
                • ... D . V . N . Sarma డి . వి . ఎన్ . శర్మ

Reply via email to