problem with web browser module
I need to be able to invoke a specific webpage with Internet Explorer. If the browser is not up with that page, I needed to come up with that page. If the browser is already up, I only need to bring that browser and page to the top of the window piles. When I use the web browser module today, it always seems to bring a new browser instance up. Is there anyway to get it to work with a single instance? the use case is to invoke a specific evernote page and make it available for immediate dictation using speech recognition. There's a whole bunch of other things I need to do around the browser invocation but that's my problem and fortunately I know what I have to do. I just need your help in making sure only a single browser instance is created and it references a single page. If I have multiple pages I need to refer to, it would be nice if they came up the separate tabs within the same browser instance.:-) A clue or two would be welcome. Thanks --- eric -- http://mail.python.org/mailman/listinfo/python-list
Re: problem with web browser module
On Saturday, December 15, 2012 9:14:25 PM, Terry Reedy wrote: I believe this worked with Firefox the last time I tested. I just read the docs. Never tried IE. I believe details partly depend on browser. thank you Terry. I will try with Firefox but the main reason I'm using IE is simply because nuance has created a module to make the text areas speech recognition friendly. So I will do some more work to find out how to make IE do what I needed it to do. thank you again. -- http://mail.python.org/mailman/listinfo/python-list
installing python 2.7.11 + win32 on win 10
the install of the basic 2.7 seems to go ok but when installing the win32 extensions, I get: close failed in file object destructor: sys.excepthook is missing lost sys.stderr I've tried installing as administrator but no joy. what should I try next? -- https://mail.python.org/mailman/listinfo/python-list
problem with selecting remote procedure calls
https://docs.google.com/drawings/d/1M-TzfRaSaAhFXQk1OmcmHNOaW31_7W_7q0bf8CAJqSw/edit?usp=sharing while this is related to my speech recognition through the next project, is actually a good question for RPCs in general. Specifically, are there any good-RPCs out there that are fast, supported, and easy to use? The Google Doc image given above shows the kind of things I'm doing to make speech recognition, running on windows, drive linux. The relay and emitter pair are almost trivially easy. The RPC is used to communicate the Windows scan code or codes for a given key and then the inner side translates that scan code into an actual code understood by Linux and it is shoved into the input queue. it's much harder to create a natlink module with a matching object in the RPC server. In this case, the class "data jammer" queries the application I built and extracts data necessary to inform the grammar back in the natlink module. Once the grammar executes, "data jammer" is called again to transform the results of the recognized grammar into usable data that will drive another application. In this case, I stuffed the data into the Windows input queue which in turn gets injected into win_relay. At this point, this is where I'm having some trouble with the RPC choices. I initially settled on rpyc because it was easy, it looked like it would do what I needed and it might even be fast enough. The problem being that the user community is mostly inhabited by crickets. Second problem is that it's not clear if I can export multiple objects from a single server. Ideally, I want there to be a pair of Python programs executing for any given grammar. The first would be the module imported into natlink and the other would be it's matching partner in crime on the linux side. I'm looking for ways to implement a plug-in architecture with independent objects. I would welcome advice on pieces I can recycle to meet my needs. for example, which Python RPC environment would best suit my needs. Remember, it needs to be relatively light because execution time does have an influence on recognition accuracy and speed. thanks in advance --- eric -- https://mail.python.org/mailman/listinfo/python-list
Re: problem with selecting remote procedure calls
- Original Message - From: "Irmen de Jong" Eric, if you're concerned about performance, Pyro4 (the source distribution) comes with several examples that do simple performance related tests. You could run these and see what figures you get on your setup to see if it's anywhere acceptable, before even building anything with Pyro yourself. sounds like a plan. I managed to get around the initial problem I had because apparently the natlink extension for NaturallySpeaking is semi-persistent. Sometimes the statically created RPC connection would work, other times it wouldn't. The current workaround is to place the RPC connection initialization in the code that activates the grammar. Interesting project btw. it has been a long time since a project like this has made me smile ear-to-ear. For example, yesterday I had to create twelve open VPN configuration files and key pairs. With broken hands like mine, it would be an extremely painful hour to two hours to entering the data over and over again even with easy RSA. I was able to complete this task in about 10 to 15 minutes. Now that's what accessibility is all about. I believe my experiment shows that a two dimensional grid with names for both rows and columns can allow a speech recognition dependent user much faster data entry than one could have with straight speech recognition. With some enhancements, it should be possible to use this technique to remember something on the fly. ideally I'd like to take a tool like treesheets , put some Python power underneath the grid, and explore how a grid tool can help accessibility but I'd need a volunteer to make that happen. -- https://mail.python.org/mailman/listinfo/python-list
simple GUI environment
I need a simple GUI toolkits like easygui pythoncard. The main reason I discount both of those is that they are effectively dead as I can see. Last updates in the 2010/2011 range. Has there been some toolkit to replace them? And no, the existing wxpython/gtk/qt/... toolkits really aren't acceptable. I need to get something done in 12 hours and I don't have time to climb the learning curve. The application I'm building is a tool which gathers and saves configuration data for a specific Windows application. It needs to run in a Windows batch file for multisystem deployment and also as a GUI when the user is mucking about. It also needs to run as a portable app because I can't install this on every machine. many corporate IT types don't take kindly to utilities leaving little footprints all over the place. The CLI version works. Simple UI, does what I need for part of the job. Now I need to add a relatively simple GUI. The user interface will consist of a series of tabs across the top, one for each subsystem and the main panel beneath that will contain the UI for the tab related task. I could fake the tabs by using a horizontal list of radio buttons which have the same semantics as tabs but a very different look. I could do this relatively easily with twitter bootstrap but I don't have a standalone browser that I can embed in Python so I could build HTML for user interface. suggestions? I appreciate whatever help you can give. -- http://mail.python.org/mailman/listinfo/python-list
Re: simple GUI environment
On 3/5/2013 10:06 AM, Tim Golden wrote: On 05/03/2013 14:55, Kevin Walzer wrote: On 3/5/13 9:20 AM, Eric Johansson wrote: The main reason I discount both of those is that they are effectively dead as I can see. Last updates in the 2010/2011 range. Why not give EasyGUI a try? or PyGUI: http://www.cosc.canterbury.ac.nz/greg.ewing/python_gui/ you guys are great. I'm going to try pygui first and easygui second. My reason for this is that pygui looks like it will let me bundle using py2exe without trying hard.the only thing that would make it better is if either of these kits used standard Rich text edit controls under Windows so I can speech enable these applications. Thanks a bunch. All the advice was really useful and appreciated. -- http://mail.python.org/mailman/listinfo/python-list
collaborative editing environments
I finally have an intern helping me with my various accessibility projects. We need to do pair programming so he can write the code in my head that I can't express by broken hand or speech recognition (yet). The best technique with come up with so far is to use putty sessions with the same layout and use dtach into one emacs. Nonideal but it kind of sort of works after fashion. we are constrained that neither of us will poke holes in our firewalls to allow a peer-to-peer system to work so we will need a third system intermediary. What would be ideal is some sort of cloud-based collaborative editor/IDE with local storage capability. Revision control to be handled individually to a common repository outside of the IDE/editor. Super best would be an IDE with an API so I can drive the IDE from speech recognition but, I know I'm living in a fantasyland any time I look for accessibility. at the hands one of our projects being adding accessibility controls to an existing editor. Haven't decided which one yet but the leading contender is sublime. gobby it's kind of useful but again, it requires firewall holes or in intermediary that appears to have several shortcomings.also, according to folks I met on IRC, the developers disappeared from IRC about 18 months ago and there's been no development on the project since then. so, what have your experiences been with collaborative environments? -- http://mail.python.org/mailman/listinfo/python-list
Re: collaborative editing environments
On 3/5/2013 1:38 PM, Dave Angel wrote: On 03/05/2013 12:56 PM, Eric Johansson wrote: I finally have an intern helping me with my various accessibility projects. We need to do pair programming so he can write the code in my head that I can't express by broken hand or speech recognition (yet). The best technique with come up with so far is to use putty sessions with the same layout and use dtach into one emacs. Nonideal but it kind of sort of works after fashion. we are constrained that neither of us will poke holes in our firewalls to allow a peer-to-peer system to work so we will need a third system intermediary. Call that intermediary the "host" machine. I prefer to think of it as a proxy or relay host. :-) In my perfect world, it would host no data, only relay traffic between a group of users. If host is running on a Linux box, you could run 'screen' or one of its variants (such as tmux). Screen lets you have multiple consoles run through one ssh session, and presents them on your remote as one console. Keystrokes let you switch which console you're connected to at the moment. And another user can be given permissions to see exactly the same screen session. So you can chat on one console, and emacs on another, all within the same screen. Naturally, you can run multiple screens, on independent ssh sessions, if that suits you better. Been there, done that and I will tell you that if you are see using speech recognition, it's the fourth closest definition to hell I can possibly think of. in band keystrokes always get in the way because some application makes use of them. If they are sufficiently secure to not interfere, then they are bitch to remember. ideally, there would be an out of band API that I could drive from my speech recognition command extension environment and control the connection multiplexer. This is another reason for a local editor, it's easier to speech enable when the environment is nearby. I will thank you for this because you reminded me that team viewer didn't suck too bad and my intern could be the one with the live editor and I'm just watching and commenting over Skype No experience accessing it from Windows, but putty will probably do it. it could. I've done remote collaboration this way, while using a satellite connection that's hopeless for gui environments. fortunately, I'm only going as far as Estonia which is reasonably well connected -- http://mail.python.org/mailman/listinfo/python-list
Re: simple GUI environment
On 3/5/2013 6:18 PM, Gregory Ewing wrote: Eric Johansson wrote: the only thing that would make it better is if either of these kits used standard Rich text edit controls under Windows so I can speech enable these applications. PyGUI's TextEditor is based on the rich edit control in Windows. It doesn't currently expose all of its capabilities, but if speech is all you want, it might be sufficient. Do you know which one? http://www.section508.va.gov/docs/Dragon_Naturally_Speaking_Apps.pdf (copied from the PDF, apologies for the crappy formatting) Use supported window classes for edit controls. Dragon 10 supports the following control classes. (Borland controls, TE Edit, and TX Text are supported only in Professional, Medical, Legal, and SDK editions of Dragon.) Vendor Control Class Microsoft Edit, Rich Edit, Rich Edit20A, RichEdit20W, Rich Edit50W, Inktextbox, Inkedit, RichTextBox .NET controls Borland TMemo, TEdit, TRichEdit Sub Systems TE Edit versions 10, 11, 12, 13, 14, 15 (not TE Edit .NET) Text Control TX Text versions 10, 11, 12, 13, 14 and TX Text .NET -- http://mail.python.org/mailman/listinfo/python-list