I for one really appreciate all of the efforts put into the Fruit Basket examples. I started with the Visual Basic example, which also provides a great introduction to Visual Studio. Well some of that might be considered part of the Visual Studio 2005/2008 JAWS Scripts. No matter, they fit well together.
This family of examples points out very vivedely the differences vetween the many languages and show how to get started. I think it is very valuable!
I am not sure there is much to say or do regarding porting a Fruit Basket Python example for Vinux. Just a few paragraphs might be enough. First, Python 2.6 and all of the necessary libraries are included and installed into every Vinux installation. Even the smallest, Vinux 3.0 Libra CD edition, available at vinux.org.uk. There is nothing needed or to be configured for basic Python development!
Just copying and unzipping the Windows Python Fruit Basket example requires no modifications. Just run the program with the python command in a terminal window.
python py_fruit.pyThe python program can be run directly from the command line in a terminal window in gnome with the following small modifications.
1. Add the following at the very top of the py_fruit.py file to load the correct interpreter:
#!/usr/bin/env python 2. Change permissions on the file to at least allow execution. chmod +x py_fruit.py3. Although the differences in line endings between Windows and Linux do not seem to matter to the python interpreter, it does create problems for that first line to load the interpreter. There may be an easier way, but I installed an additional utility package to convert between line endings.
sudo aot-get update sudo apt-get install tofrodos Now convert the file (strips off carriage returns): fromdos py_fruit.py 4. Run the python program. ./py_fruit.pyThe program runs perfectly and is fully accessible with one exception. When the program dialog is first displayed, it seems to not be focused on any control. It does not properly announce fields or Tab around at first. I found that if I hit one of the dialog accelerators, like Alt + f, it gets proper focus and everything works perfect. Is there a statement that can be added to set the focus on creation? Perhaps the statement is not needed in Windows or works differently.
Don MarangThere is just so much stuff in the world that, to me, is devoid of any real substance, value, and content that I just try to make sure that I am working on things that matter.
Dean Kamen -------------------------------------------------- From: "Jamal Mazrui" <empower@xxxxxxxxx> Sent: Monday, October 11, 2010 4:37 PM To: "programmingblind" <programmingblind@xxxxxxxxxxxxx> Subject: Re: iPhone development
__________View the list's information and change your settings at http://www.freelists.org/list/programmingblind