[Tutor] Battery Level Monitoring and Voice

2011-01-19 Thread FT
Hello everyone, Since I got a simple answer on the Python Win32 web site I decided to post it here for those who would want that information, especially those who can not see. The first 2 lines are all that is needed along with the battery level instances using that object, ( BatteryP

[Tutor] Writing Python Script to read battery level

2011-01-17 Thread FT
Allan, Is there a way to read the battery level using Python? I am totally blind and want to write a script to capture the battery level and send it through the voice activeX so I can speak it... Bruce ___ Tutor maillist - Tutor@py

[Tutor] SYS Long File Names?

2010-02-07 Thread FT
Hi! I was looking at the sys.argv(1) file name and it is the short 8 char name. How do you place it into the long file name format? I was reading music files and comparing the name to the directory listing and always comes back as not found because the name was shortened. So, how do you

Re: [Tutor] How to populate a dictionary

2008-07-17 Thread FT
Dates = {} def read_Dates (Dates): if os.path.exists(FILE_NAME): store = open(FILE_NAME,'r') for line in store: name = line.rstrip() entry = store.next().rstrip() Dates[name] = entry store.close() def save_Dates (Dates): store =

[Tutor] Text Editor With Speech

2008-07-09 Thread FT
Hi! I am coming closer to the talking editor and voice adjustments inside my editor/talking module. When reading the events over and over again I am slowly understanding who wants what. Inside an editor there are key commands that do certain things and I try to give some voice to them.

Re: [Tutor] New to pythong

2008-07-07 Thread FT
Hello everybody: I am new to this mailing list, and it said that i could the simplest of questions. So i was wondering if anyone could be so kind as to e-mail me a project idea or something to go out an learn to do in python. I don't know any languages, but i am definitely not computer illiter

Re: [Tutor] New to pythong

2008-07-07 Thread FT
Hi! Yes, Mark had something to say, and so did Alan. Games are a good start, also a home need, or a business need. The way I started Python was games. The Yhatzee game, then my Star Trek game, converted over from the original basic game. Then the battleship game, the board game,

[Tutor] Voice Text To Speech and Wav File Make and Save

2008-07-05 Thread FT
Hi! I got my text to speech to work better, will in the future remove the buttons and only have the file menu. It seems to work fine and now use sub menu's for voice settings. What will be needed as an event to capture the cursor movement inside the text box. How do I get the key and

Re: [Tutor] open-file GUI

2008-07-04 Thread FT
Hi! My demo is from wspython. The Hebrew window messed up my reading and now I have included the imports and the initial assignment. You can place them in caps for global vars, but place them inside a class so they are self...calls. Hello, I am starting to use Python+NumPy+SciPy+Matplotlib

Re: [Tutor] open-file GUI

2008-07-04 Thread FT
Hi! My demo is from wspython. Hello, I am starting to use Python+NumPy+SciPy+Matplotlib as a substitute to MATLAB. I need a simple GUI that can help me to open files and save file i.e. something similar to uigetfile in MATLAB. Is there a simple script that opens a window with a possibil

Re: [Tutor] open-file GUI

2008-07-04 Thread FT
Hi! My demo is from wspython. Hello, I am starting to use Python+NumPy+SciPy+Matplotlib as a substitute to MATLAB. I need a simple GUI that can help me to open files and save file i.e. something similar to uigetfile in MATLAB. Is there a simple script that opens a window with a possibilit

[Tutor] Mixer and Busy Flag Never Working?

2008-07-03 Thread FT
A Question: Has anyone ever played with Pygame and the sound mixer? If so, has anyone ever had the busy flag, and the problem below ever work? Subject: Re: [pygame] Mixer Quit / Restart This appears to get the total number of channels, not the number of active channels. However, I tried u

Re: [Tutor] addressbook program

2008-06-28 Thread FT
Hi Alan, You said: > #DO TEXT INPUT WITH ENTRY ON NEXT LINE! > def text_Input(prompt): > print prompt > return (raw_input(">> ")) Just use: raw_input(prompt + "\n>> " ) Yes, that is OK if you are sighted, for the screen reader program does not say the message in the prompt unless t

Re: [Tutor] Transporting Voices For Sapi and DLL Correction

2008-06-25 Thread FT
Hi! I am sending the latest version of my voice package and 2 different tests. When compiling the Voice2.py you may get an error if you do not have MSVcp71.dll copied into your setup.py file. In other words a copy command to copy the dll from your system32 folder. For if you do not, some c

[Tutor] Transporting Voices For Sapi

2008-06-25 Thread FT
Hi! I am sending the latest version of my voice package and 2 different tests. When compiling the Voice2.py you may get an error if you do not have MSVcp.dll copied into your setup.py file. In other words a copy command to copy the dll from your system32 folder. For if you do not, some compu

[Tutor] A SAPI Module With Pitch and Create

2008-06-22 Thread FT
Hi! I have reduced down and added a few features into the SAPI 5 speech module I have created. You can now save and read wav files. The test module tests most of the features I have in it at the moment. I added the ability inside the Create method to set all the voice parameters. Yo

Re: [Tutor] File Stream Assignment?

2008-06-21 Thread FT
Alan Gauld Wrote: "FT" <[EMAIL PROTECTED]> wrote Caveat: I know nothing about MS SAPI. > The following code illustrates how to speak a text file > in a specific voice in Visual Basic. This example assumes > a text file (ttstemp.txt) containing the text to b

Re: [Tutor] File Stream Assignment?

2008-06-21 Thread FT
Alan, This is what I wrote in python. The onlyu thing I did not do is a declaration of a filestream as the VB example does. I get no errors, just the Speak method just speaks. The saved file has no data, 0 Bytes. Now the note they mentioned was the True flag and I inserted that. import S

Re: [Tutor] File Stream Assignment?

2008-06-21 Thread FT
Alan Gauld Wrote: "FT" <[EMAIL PROTECTED]> wrote Caveat: I know nothing about MS SAPI. > The following code illustrates how to speak a text file > in a specific voice in Visual Basic. This example Notice this says nothing about writing to a file. > Dim FileName As S

Re: [Tutor] File Stream Assignment?

2008-06-21 Thread FT
On: Friday, June 20, 2008 11:47 PM Kent Johnson Wrote: On Fri, Jun 20, 2008 at 5:47 PM, FT <[EMAIL PROTECTED]> wrote: >I would like to know how a file can be open for a stream event? What is a stream event? >I ask this question because of the SAPI 5 save a wave file and th

[Tutor] File Stream Assignment?

2008-06-20 Thread FT
Hi! I would like to know how a file can be open for a stream event? I ask this question because of the SAPI 5 save a wave file and the only way to do that is with a file stream. The file read is simple and uses the isfilename flag, but the save file I can not find in all my searches, at

Re: [Tutor] Using SAPI 5 Voices and Methods

2008-06-18 Thread FT
As a note to this message post: the error I was getting for both the spell and the isfilename was traced down to simple factors. One problem is finding clear explanations and then checking the erroor codes. I found both on the issues mentioned about the SAPI 5 issues. The test I was ru

[Tutor] Using SAPI 5 Voices and Methods

2008-06-16 Thread FT
Hi! I am resending this SAPI examples for speech, I guess in some cases the email message gets messed up so I attached the SAPI 5 test for voices along with an HTML version using Java Script. It also has the methods and a voice by name assignment since the voices are an array list by eleme

[Tutor] If You Wish Microsoft Voices For Your Programming

2008-06-15 Thread FT
Hi! Below is the settings to use the built in SAPI 5 voices. It will also read any other voices loaded into the SAPI 5 and stores the list of all of them. You can change the names of the methods if you so desire. I am giving you an example of how to set up your voices. NOTE: The pitch

Re: [Tutor] IDE

2008-06-10 Thread FT
From: "jordan halsey" <[EMAIL PROTECTED]> Sent: Tuesday, June 10, 2008 1:40 PM Any one here using cutter... http://www.fundza.com Free Java based ide with many built in functions and bindings. This is an especially useful tool if you are doing 3d or any kind of shader writing. Also, try this ed

Re: [Tutor] Pythoncom Tutorial

2008-05-19 Thread FT
> Hi! > > I noticed that when wanting to learn Pythoncom there is > no real good > accessible tutorial for it. > Does anyone know where a good structured tutorial exists > for the Com > utilities so I can write my own screen reader program? > Python Programming on Win32 might help. There'

[Tutor] Pythoncom Tutorial

2008-05-19 Thread FT
Hi! I noticed that when wanting to learn Pythoncom there is no real good accessible tutorial for it. Does anyone know where a good structured tutorial exists for the Com utilities so I can write my own screen reader program? When trying to understand all the needed variables and such

[Tutor] Sorting Dictionary Keys

2008-05-13 Thread FT
Jim, OK, use the example below for sorting dictionary keys and placing them in a list. Note that an error will happen if the format on the print statement does not correspond to the type of sort. #THIS SORTS A DICTIONARY BY USING SET THEORY AND DIC ITEMS! import random dic = {} print "Randomizi