Hi Rick,
Yes I agree. In fact my first job after going blind was only basic and
those days are nice to remember. For calling line numbers, you had to remember
everything. but, it certainly forced you to use your mind.
On Python, yes, functions are variable specific and you just have to
remember only about pass through parameters. Those if not declared are the
problem. Only global or declared first for functions is needed.
For you will see in Python programs a module declared just before a
function; I guess for easier readability as you say. For programs with
thousands of lines, you can not put all at the top.
So, in some cases, where needed, a declaration would be best suited as I
said about Python. If never used any where else, then declare just above the
function or method that uses it..
But, in all cases, place those comments in to say what is going on. In
Python, the first line is the description section and you must use 3 quotes
before and after to insure it is read.
Bruce
Sent: Tuesday, April 19, 2011 10:54 AM
Subject: WindowEyes And Language Handling questions
Hi:
I think I remember reading about how Languages were handled in WindowEyes
Scripting via the xml file.
I can't find that article or document again.
I have 2 questions in preparation of a script and Article on this:
Question 1:
In the following statement where does Windoweyes get the WE and the OS values
from and
how are they related, if at all, to the following Properties?
<languageorder>WE,OS,en-us</languageorder>
I am wondering about which object below, if either, is related to the WE and
the OS values or placeholders.
CurrentLanguage
Returns a Language enum indicating the current Window-Eyes language.
CurrentLocaleID
Returns a value indicating the current Window-Eyes language identifier.
Question 2:
The following opening tag starts the entries for a given language.
<language id="en-us">
Would I use the string value of any language not in the WindowEyes listed
enums in the above statement or it's numeric value?
If you think of anything else that might be related to the above xml objects
like the
Location Method of the Utilities Object, if it is related,
could you let me know?
Thanks:
Rick USA