10 sec poll - please reply!

emile emile at fenx.com
Tue Nov 20 11:21:20 EST 2012


On 11/20/2012 04:18 AM, Michael Herrmann wrote:
> Hi,
>
> I'm developing a GUI Automation library (http://www.getautoma.com) and am having difficulty picking a name for the function that simulates key strokes. I currently have it as 'type' but that clashes with the built-in function. Example uses of 'type':
>
> type(ENTER)
>
> type("Hello World!")
>
> type(CTRL + 'a')
>
> What, in your view, would be the most intuitive alternative name?
>
> Here are my thoughts so far: I could call it 'press'

I have several tools that distinguish between press and release for 
this.  You may want to consider having both.

Emile




More information about the Python-list mailing list