Re: [orca-list] Scripting applications with dotted names



Hi Nolan:

Cool!  Glad to see you jumping in.  :-)

You can workaround this by using the settings.py:setScriptMapping method, which we put in place to handle situations similar to this. You can put a call to this in your ~/.orca/user-settings.py or ~/.orca/orca-customizations.py file and we can ultimately add it to settings.py once you submit your gajim.py script.

The first parameter is a regular expression to match the name you're getting from the application and the second parameter is the name of the script module with the .py extension removed. Search for calls to setScriptMapping in settings.py and you will find examples.

Hope this helps!

Will

Nolan Darilek wrote:
I'm trying to script gajim. One thing I'm noticing is that its app name is gajim.py, not gajim. This, understandably, causes conflicts with the script-loading engine, since I can't call a script gajim.py.py and I don't think gajim.py (Orca script) is being mapped to gajim.py (app.)

Does Orca have any neat tricks for loading scripts for dotted app names? Is there any way to handle this other than renaming the app or passing the --name option (I think that'll do it, anyway.) And, if not, does anyone know how to set the app name in a pygtk app? Google isn't much help, and I don't know enough GTK to figure out what to search for in pygtk.

Thanks.

_______________________________________________
Orca-list mailing list
Orca-list gnome org
http://mail.gnome.org/mailman/listinfo/orca-list
Visit http://live.gnome.org/Orca for more information on Orca




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]