partition
stringclasses
3 values
func_name
stringlengths
1
134
docstring
stringlengths
1
46.9k
path
stringlengths
4
223
original_string
stringlengths
75
104k
code
stringlengths
75
104k
docstring_tokens
listlengths
1
1.97k
repo
stringlengths
7
55
language
stringclasses
1 value
url
stringlengths
87
315
code_tokens
listlengths
19
28.4k
sha
stringlengths
40
40
valid
Core.getobjectinfo
Get object properties. @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to look for, either full name, LDTP's name convention, or a Unix glob. @type object_nam...
atomac/ldtpd/core.py
def getobjectinfo(self, window_name, object_name): """ Get object properties. @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to look for, either full name, ...
def getobjectinfo(self, window_name, object_name): """ Get object properties. @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to look for, either full name, ...
[ "Get", "object", "properties", "." ]
alex-kostirin/pyatomac
python
https://github.com/alex-kostirin/pyatomac/blob/3f46f6feb4504315eec07abb18bb41be4d257aeb/atomac/ldtpd/core.py#L257-L288
[ "def", "getobjectinfo", "(", "self", ",", "window_name", ",", "object_name", ")", ":", "try", ":", "obj_info", "=", "self", ".", "_get_object_map", "(", "window_name", ",", "object_name", ",", "wait_for_object", "=", "False", ")", "except", "atomac", ".", "_...
3f46f6feb4504315eec07abb18bb41be4d257aeb
valid
Core.getobjectproperty
Get object property value. @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to look for, either full name, LDTP's name convention, or a Unix glob. @type object...
atomac/ldtpd/core.py
def getobjectproperty(self, window_name, object_name, prop): """ Get object property value. @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to look for, eithe...
def getobjectproperty(self, window_name, object_name, prop): """ Get object property value. @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to look for, eithe...
[ "Get", "object", "property", "value", "." ]
alex-kostirin/pyatomac
python
https://github.com/alex-kostirin/pyatomac/blob/3f46f6feb4504315eec07abb18bb41be4d257aeb/atomac/ldtpd/core.py#L290-L325
[ "def", "getobjectproperty", "(", "self", ",", "window_name", ",", "object_name", ",", "prop", ")", ":", "try", ":", "obj_info", "=", "self", ".", "_get_object_map", "(", "window_name", ",", "object_name", ",", "wait_for_object", "=", "False", ")", "except", ...
3f46f6feb4504315eec07abb18bb41be4d257aeb
valid
Core.getchild
Gets the list of object available in the window, which matches component name or role name or both. @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param child_name: Child name to search for. ...
atomac/ldtpd/core.py
def getchild(self, window_name, child_name='', role='', parent=''): """ Gets the list of object available in the window, which matches component name or role name or both. @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. ...
def getchild(self, window_name, child_name='', role='', parent=''): """ Gets the list of object available in the window, which matches component name or role name or both. @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. ...
[ "Gets", "the", "list", "of", "object", "available", "in", "the", "window", "which", "matches", "component", "name", "or", "role", "name", "or", "both", "." ]
alex-kostirin/pyatomac
python
https://github.com/alex-kostirin/pyatomac/blob/3f46f6feb4504315eec07abb18bb41be4d257aeb/atomac/ldtpd/core.py#L327-L422
[ "def", "getchild", "(", "self", ",", "window_name", ",", "child_name", "=", "''", ",", "role", "=", "''", ",", "parent", "=", "''", ")", ":", "matches", "=", "[", "]", "if", "role", ":", "role", "=", "re", ".", "sub", "(", "' '", ",", "'_'", ",...
3f46f6feb4504315eec07abb18bb41be4d257aeb
valid
Core.launchapp
Launch application. @param cmd: Command line string to execute. @type cmd: string @param args: Arguments to the application @type args: list @param delay: Delay after the application is launched @type delay: int @param env: GNOME accessibility environment to be s...
atomac/ldtpd/core.py
def launchapp(self, cmd, args=[], delay=0, env=1, lang="C"): """ Launch application. @param cmd: Command line string to execute. @type cmd: string @param args: Arguments to the application @type args: list @param delay: Delay after the application is launched ...
def launchapp(self, cmd, args=[], delay=0, env=1, lang="C"): """ Launch application. @param cmd: Command line string to execute. @type cmd: string @param args: Arguments to the application @type args: list @param delay: Delay after the application is launched ...
[ "Launch", "application", "." ]
alex-kostirin/pyatomac
python
https://github.com/alex-kostirin/pyatomac/blob/3f46f6feb4504315eec07abb18bb41be4d257aeb/atomac/ldtpd/core.py#L424-L456
[ "def", "launchapp", "(", "self", ",", "cmd", ",", "args", "=", "[", "]", ",", "delay", "=", "0", ",", "env", "=", "1", ",", "lang", "=", "\"C\"", ")", ":", "try", ":", "atomac", ".", "NativeUIElement", ".", "launchAppByBundleId", "(", "cmd", ")", ...
3f46f6feb4504315eec07abb18bb41be4d257aeb
valid
Core.activatewindow
Activate window. @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @return: 1 on success. @rtype: integer
atomac/ldtpd/core.py
def activatewindow(self, window_name): """ Activate window. @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @return: 1 on success. @rtype: integer """ window_handle ...
def activatewindow(self, window_name): """ Activate window. @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @return: 1 on success. @rtype: integer """ window_handle ...
[ "Activate", "window", "." ]
alex-kostirin/pyatomac
python
https://github.com/alex-kostirin/pyatomac/blob/3f46f6feb4504315eec07abb18bb41be4d257aeb/atomac/ldtpd/core.py#L510-L523
[ "def", "activatewindow", "(", "self", ",", "window_name", ")", ":", "window_handle", "=", "self", ".", "_get_window_handle", "(", "window_name", ")", "self", ".", "_grabfocus", "(", "window_handle", ")", "return", "1" ]
3f46f6feb4504315eec07abb18bb41be4d257aeb
valid
Core.click
Click item. @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to look for, either full name, LDTP's name convention, or a Unix glob. @type object_name: string ...
atomac/ldtpd/core.py
def click(self, window_name, object_name): """ Click item. @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to look for, either full name, LDTP's name ...
def click(self, window_name, object_name): """ Click item. @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to look for, either full name, LDTP's name ...
[ "Click", "item", "." ]
alex-kostirin/pyatomac
python
https://github.com/alex-kostirin/pyatomac/blob/3f46f6feb4504315eec07abb18bb41be4d257aeb/atomac/ldtpd/core.py#L525-L552
[ "def", "click", "(", "self", ",", "window_name", ",", "object_name", ")", ":", "object_handle", "=", "self", ".", "_get_object_handle", "(", "window_name", ",", "object_name", ")", "if", "not", "object_handle", ".", "AXEnabled", ":", "raise", "LdtpServerExceptio...
3f46f6feb4504315eec07abb18bb41be4d257aeb
valid
Core.getallstates
Get all states of given object @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to look for, either full name, LDTP's name convention, or a Unix glob. @type ob...
atomac/ldtpd/core.py
def getallstates(self, window_name, object_name): """ Get all states of given object @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to look for, either full ...
def getallstates(self, window_name, object_name): """ Get all states of given object @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to look for, either full ...
[ "Get", "all", "states", "of", "given", "object" ]
alex-kostirin/pyatomac
python
https://github.com/alex-kostirin/pyatomac/blob/3f46f6feb4504315eec07abb18bb41be4d257aeb/atomac/ldtpd/core.py#L554-L585
[ "def", "getallstates", "(", "self", ",", "window_name", ",", "object_name", ")", ":", "object_handle", "=", "self", ".", "_get_object_handle", "(", "window_name", ",", "object_name", ")", "_obj_states", "=", "[", "]", "if", "object_handle", ".", "AXEnabled", "...
3f46f6feb4504315eec07abb18bb41be4d257aeb
valid
Core.hasstate
has state @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to look for, either full name, LDTP's name convention, or a Unix glob. @type object_name: string ...
atomac/ldtpd/core.py
def hasstate(self, window_name, object_name, state, guiTimeOut=0): """ has state @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to look for, either full name...
def hasstate(self, window_name, object_name, state, guiTimeOut=0): """ has state @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to look for, either full name...
[ "has", "state" ]
alex-kostirin/pyatomac
python
https://github.com/alex-kostirin/pyatomac/blob/3f46f6feb4504315eec07abb18bb41be4d257aeb/atomac/ldtpd/core.py#L587-L623
[ "def", "hasstate", "(", "self", ",", "window_name", ",", "object_name", ",", "state", ",", "guiTimeOut", "=", "0", ")", ":", "try", ":", "object_handle", "=", "self", ".", "_get_object_handle", "(", "window_name", ",", "object_name", ")", "if", "state", "=...
3f46f6feb4504315eec07abb18bb41be4d257aeb
valid
Core.getobjectsize
Get object size @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to look for, either full name, LDTP's name convention, or a Unix glob. Or menu heirarchy @type...
atomac/ldtpd/core.py
def getobjectsize(self, window_name, object_name=None): """ Get object size @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to look for, either full name, ...
def getobjectsize(self, window_name, object_name=None): """ Get object size @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to look for, either full name, ...
[ "Get", "object", "size" ]
alex-kostirin/pyatomac
python
https://github.com/alex-kostirin/pyatomac/blob/3f46f6feb4504315eec07abb18bb41be4d257aeb/atomac/ldtpd/core.py#L625-L643
[ "def", "getobjectsize", "(", "self", ",", "window_name", ",", "object_name", "=", "None", ")", ":", "if", "not", "object_name", ":", "handle", ",", "name", ",", "app", "=", "self", ".", "_get_window_handle", "(", "window_name", ")", "else", ":", "handle", ...
3f46f6feb4504315eec07abb18bb41be4d257aeb
valid
Core.grabfocus
Grab focus. @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to look for, either full name, LDTP's name convention, or a Unix glob. @type object_name: string ...
atomac/ldtpd/core.py
def grabfocus(self, window_name, object_name=None): """ Grab focus. @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to look for, either full name, LDT...
def grabfocus(self, window_name, object_name=None): """ Grab focus. @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to look for, either full name, LDT...
[ "Grab", "focus", "." ]
alex-kostirin/pyatomac
python
https://github.com/alex-kostirin/pyatomac/blob/3f46f6feb4504315eec07abb18bb41be4d257aeb/atomac/ldtpd/core.py#L657-L675
[ "def", "grabfocus", "(", "self", ",", "window_name", ",", "object_name", "=", "None", ")", ":", "if", "not", "object_name", ":", "handle", ",", "name", ",", "app", "=", "self", ".", "_get_window_handle", "(", "window_name", ")", "else", ":", "handle", "=...
3f46f6feb4504315eec07abb18bb41be4d257aeb
valid
Core.guiexist
Checks whether a window or component exists. @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to look for, either full name, LDTP's name convention, or a Unix glob. ...
atomac/ldtpd/core.py
def guiexist(self, window_name, object_name=None): """ Checks whether a window or component exists. @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to look fo...
def guiexist(self, window_name, object_name=None): """ Checks whether a window or component exists. @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to look fo...
[ "Checks", "whether", "a", "window", "or", "component", "exists", "." ]
alex-kostirin/pyatomac
python
https://github.com/alex-kostirin/pyatomac/blob/3f46f6feb4504315eec07abb18bb41be4d257aeb/atomac/ldtpd/core.py#L677-L704
[ "def", "guiexist", "(", "self", ",", "window_name", ",", "object_name", "=", "None", ")", ":", "try", ":", "self", ".", "_windows", "=", "{", "}", "if", "not", "object_name", ":", "handle", ",", "name", ",", "app", "=", "self", ".", "_get_window_handle...
3f46f6feb4504315eec07abb18bb41be4d257aeb
valid
Core.waittillguiexist
Wait till a window or component exists. @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to look for, either full name, LDTP's name convention, or a Unix glob. ...
atomac/ldtpd/core.py
def waittillguiexist(self, window_name, object_name='', guiTimeOut=30, state=''): """ Wait till a window or component exists. @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string...
def waittillguiexist(self, window_name, object_name='', guiTimeOut=30, state=''): """ Wait till a window or component exists. @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string...
[ "Wait", "till", "a", "window", "or", "component", "exists", "." ]
alex-kostirin/pyatomac
python
https://github.com/alex-kostirin/pyatomac/blob/3f46f6feb4504315eec07abb18bb41be4d257aeb/atomac/ldtpd/core.py#L732-L759
[ "def", "waittillguiexist", "(", "self", ",", "window_name", ",", "object_name", "=", "''", ",", "guiTimeOut", "=", "30", ",", "state", "=", "''", ")", ":", "timeout", "=", "0", "while", "timeout", "<", "guiTimeOut", ":", "if", "self", ".", "guiexist", ...
3f46f6feb4504315eec07abb18bb41be4d257aeb
valid
Core.waittillguinotexist
Wait till a window does not exist. @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to look for, either full name, LDTP's name convention, or a Unix glob. @typ...
atomac/ldtpd/core.py
def waittillguinotexist(self, window_name, object_name='', guiTimeOut=30): """ Wait till a window does not exist. @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object n...
def waittillguinotexist(self, window_name, object_name='', guiTimeOut=30): """ Wait till a window does not exist. @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object n...
[ "Wait", "till", "a", "window", "does", "not", "exist", "." ]
alex-kostirin/pyatomac
python
https://github.com/alex-kostirin/pyatomac/blob/3f46f6feb4504315eec07abb18bb41be4d257aeb/atomac/ldtpd/core.py#L761-L785
[ "def", "waittillguinotexist", "(", "self", ",", "window_name", ",", "object_name", "=", "''", ",", "guiTimeOut", "=", "30", ")", ":", "timeout", "=", "0", "while", "timeout", "<", "guiTimeOut", ":", "if", "not", "self", ".", "guiexist", "(", "window_name",...
3f46f6feb4504315eec07abb18bb41be4d257aeb
valid
Core.objectexist
Checks whether a window or component exists. @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to look for, either full name, LDTP's name convention, or a Unix glob. ...
atomac/ldtpd/core.py
def objectexist(self, window_name, object_name): """ Checks whether a window or component exists. @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to look for,...
def objectexist(self, window_name, object_name): """ Checks whether a window or component exists. @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to look for,...
[ "Checks", "whether", "a", "window", "or", "component", "exists", "." ]
alex-kostirin/pyatomac
python
https://github.com/alex-kostirin/pyatomac/blob/3f46f6feb4504315eec07abb18bb41be4d257aeb/atomac/ldtpd/core.py#L787-L805
[ "def", "objectexist", "(", "self", ",", "window_name", ",", "object_name", ")", ":", "try", ":", "object_handle", "=", "self", ".", "_get_object_handle", "(", "window_name", ",", "object_name", ")", "return", "1", "except", "LdtpServerException", ":", "return", ...
3f46f6feb4504315eec07abb18bb41be4d257aeb
valid
Core.stateenabled
Check whether an object state is enabled or not @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to look for, either full name, LDTP's name convention, or a Unix glob....
atomac/ldtpd/core.py
def stateenabled(self, window_name, object_name): """ Check whether an object state is enabled or not @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to look ...
def stateenabled(self, window_name, object_name): """ Check whether an object state is enabled or not @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to look ...
[ "Check", "whether", "an", "object", "state", "is", "enabled", "or", "not" ]
alex-kostirin/pyatomac
python
https://github.com/alex-kostirin/pyatomac/blob/3f46f6feb4504315eec07abb18bb41be4d257aeb/atomac/ldtpd/core.py#L807-L827
[ "def", "stateenabled", "(", "self", ",", "window_name", ",", "object_name", ")", ":", "try", ":", "object_handle", "=", "self", ".", "_get_object_handle", "(", "window_name", ",", "object_name", ")", "if", "object_handle", ".", "AXEnabled", ":", "return", "1",...
3f46f6feb4504315eec07abb18bb41be4d257aeb
valid
Core.check
Check item. @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to look for, either full name, LDTP's name convention, or a Unix glob. @type object_name: string ...
atomac/ldtpd/core.py
def check(self, window_name, object_name): """ Check item. @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to look for, either full name, LDTP's name ...
def check(self, window_name, object_name): """ Check item. @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to look for, either full name, LDTP's name ...
[ "Check", "item", "." ]
alex-kostirin/pyatomac
python
https://github.com/alex-kostirin/pyatomac/blob/3f46f6feb4504315eec07abb18bb41be4d257aeb/atomac/ldtpd/core.py#L829-L857
[ "def", "check", "(", "self", ",", "window_name", ",", "object_name", ")", ":", "# FIXME: Check for object type", "object_handle", "=", "self", ".", "_get_object_handle", "(", "window_name", ",", "object_name", ")", "if", "not", "object_handle", ".", "AXEnabled", "...
3f46f6feb4504315eec07abb18bb41be4d257aeb
valid
Core.verifycheck
Verify check item. @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to look for, either full name, LDTP's name convention, or a Unix glob. @type object_name: s...
atomac/ldtpd/core.py
def verifycheck(self, window_name, object_name): """ Verify check item. @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to look for, either full name, ...
def verifycheck(self, window_name, object_name): """ Verify check item. @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to look for, either full name, ...
[ "Verify", "check", "item", "." ]
alex-kostirin/pyatomac
python
https://github.com/alex-kostirin/pyatomac/blob/3f46f6feb4504315eec07abb18bb41be4d257aeb/atomac/ldtpd/core.py#L888-L909
[ "def", "verifycheck", "(", "self", ",", "window_name", ",", "object_name", ")", ":", "try", ":", "object_handle", "=", "self", ".", "_get_object_handle", "(", "window_name", ",", "object_name", ",", "wait_for_object", "=", "False", ")", "if", "object_handle", ...
3f46f6feb4504315eec07abb18bb41be4d257aeb
valid
Core.getaccesskey
Get access key of given object @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to look for, either full name, LDTP's name convention, or a Unix glob. Or menu heirarch...
atomac/ldtpd/core.py
def getaccesskey(self, window_name, object_name): """ Get access key of given object @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to look for, either full ...
def getaccesskey(self, window_name, object_name): """ Get access key of given object @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to look for, either full ...
[ "Get", "access", "key", "of", "given", "object" ]
alex-kostirin/pyatomac
python
https://github.com/alex-kostirin/pyatomac/blob/3f46f6feb4504315eec07abb18bb41be4d257aeb/atomac/ldtpd/core.py#L934-L1011
[ "def", "getaccesskey", "(", "self", ",", "window_name", ",", "object_name", ")", ":", "# Used http://www.danrodney.com/mac/ as reference for", "# mapping keys with specific control", "# In Mac noticed (in accessibility inspector) only menu had access keys", "# so, get the menu_handle of gi...
3f46f6feb4504315eec07abb18bb41be4d257aeb
valid
Clipboard.paste
Get the clipboard data ('Paste'). Returns: Data (string) retrieved or None if empty. Exceptions from AppKit will be handled by caller.
atomac/Clipboard.py
def paste(cls): """Get the clipboard data ('Paste'). Returns: Data (string) retrieved or None if empty. Exceptions from AppKit will be handled by caller. """ pb = AppKit.NSPasteboard.generalPasteboard() # If we allow for multiple data types (e.g. a list of data types) ...
def paste(cls): """Get the clipboard data ('Paste'). Returns: Data (string) retrieved or None if empty. Exceptions from AppKit will be handled by caller. """ pb = AppKit.NSPasteboard.generalPasteboard() # If we allow for multiple data types (e.g. a list of data types) ...
[ "Get", "the", "clipboard", "data", "(", "Paste", ")", "." ]
alex-kostirin/pyatomac
python
https://github.com/alex-kostirin/pyatomac/blob/3f46f6feb4504315eec07abb18bb41be4d257aeb/atomac/Clipboard.py#L84-L96
[ "def", "paste", "(", "cls", ")", ":", "pb", "=", "AppKit", ".", "NSPasteboard", ".", "generalPasteboard", "(", ")", "# If we allow for multiple data types (e.g. a list of data types)", "# we will have to add a condition to check just the first in the", "# list of datatypes)", "da...
3f46f6feb4504315eec07abb18bb41be4d257aeb
valid
Clipboard.copy
Set the clipboard data ('Copy'). Parameters: data to set (string) Optional: datatype if it's not a string Returns: True / False on successful copy, Any exception raised (like passes the NSPasteboardCommunicationError) should be caught by the caller.
atomac/Clipboard.py
def copy(cls, data): """Set the clipboard data ('Copy'). Parameters: data to set (string) Optional: datatype if it's not a string Returns: True / False on successful copy, Any exception raised (like passes the NSPasteboardCommunicationError) should be caught ...
def copy(cls, data): """Set the clipboard data ('Copy'). Parameters: data to set (string) Optional: datatype if it's not a string Returns: True / False on successful copy, Any exception raised (like passes the NSPasteboardCommunicationError) should be caught ...
[ "Set", "the", "clipboard", "data", "(", "Copy", ")", "." ]
alex-kostirin/pyatomac
python
https://github.com/alex-kostirin/pyatomac/blob/3f46f6feb4504315eec07abb18bb41be4d257aeb/atomac/Clipboard.py#L99-L130
[ "def", "copy", "(", "cls", ",", "data", ")", ":", "pp", "=", "pprint", ".", "PrettyPrinter", "(", ")", "copy_data", "=", "'Data to copy (put in pasteboard): %s'", "logging", ".", "debug", "(", "copy_data", "%", "pp", ".", "pformat", "(", "data", ")", ")", ...
3f46f6feb4504315eec07abb18bb41be4d257aeb
valid
Clipboard.clearContents
Clear contents of general pasteboard. Future enhancement can include specifying which clipboard to clear Returns: True on success; caller should expect to catch exceptions, probably from AppKit (ValueError)
atomac/Clipboard.py
def clearContents(cls): """Clear contents of general pasteboard. Future enhancement can include specifying which clipboard to clear Returns: True on success; caller should expect to catch exceptions, probably from AppKit (ValueError) """ log_msg = 'Request to cl...
def clearContents(cls): """Clear contents of general pasteboard. Future enhancement can include specifying which clipboard to clear Returns: True on success; caller should expect to catch exceptions, probably from AppKit (ValueError) """ log_msg = 'Request to cl...
[ "Clear", "contents", "of", "general", "pasteboard", "." ]
alex-kostirin/pyatomac
python
https://github.com/alex-kostirin/pyatomac/blob/3f46f6feb4504315eec07abb18bb41be4d257aeb/atomac/Clipboard.py#L133-L144
[ "def", "clearContents", "(", "cls", ")", ":", "log_msg", "=", "'Request to clear contents of pasteboard: general'", "logging", ".", "debug", "(", "log_msg", ")", "pb", "=", "AppKit", ".", "NSPasteboard", ".", "generalPasteboard", "(", ")", "pb", ".", "clearContent...
3f46f6feb4504315eec07abb18bb41be4d257aeb
valid
Clipboard.isEmpty
Method to test if the general pasteboard is empty or not with respect to the type of object you want. Parameters: datatype (defaults to strings) Returns: Boolean True (empty) / False (has contents); Raises exception (passes any raised up)
atomac/Clipboard.py
def isEmpty(cls, datatype=None): """Method to test if the general pasteboard is empty or not with respect to the type of object you want. Parameters: datatype (defaults to strings) Returns: Boolean True (empty) / False (has contents); Raises exception (passes any raised...
def isEmpty(cls, datatype=None): """Method to test if the general pasteboard is empty or not with respect to the type of object you want. Parameters: datatype (defaults to strings) Returns: Boolean True (empty) / False (has contents); Raises exception (passes any raised...
[ "Method", "to", "test", "if", "the", "general", "pasteboard", "is", "empty", "or", "not", "with", "respect", "to", "the", "type", "of", "object", "you", "want", "." ]
alex-kostirin/pyatomac
python
https://github.com/alex-kostirin/pyatomac/blob/3f46f6feb4504315eec07abb18bb41be4d257aeb/atomac/Clipboard.py#L176-L207
[ "def", "isEmpty", "(", "cls", ",", "datatype", "=", "None", ")", ":", "if", "not", "datatype", ":", "datatype", "=", "AppKit", ".", "NSString", "if", "not", "isinstance", "(", "datatype", ",", "types", ".", "ListType", ")", ":", "datatype", "=", "[", ...
3f46f6feb4504315eec07abb18bb41be4d257aeb
valid
Utils._ldtpize_accessible
Get LDTP format accessibile name @param acc: Accessible handle @type acc: object @return: object type, stripped object name (associated / direct), associated label @rtype: tuple
atomac/ldtpd/utils.py
def _ldtpize_accessible(self, acc): """ Get LDTP format accessibile name @param acc: Accessible handle @type acc: object @return: object type, stripped object name (associated / direct), associated label @rtype: tuple """ actual_r...
def _ldtpize_accessible(self, acc): """ Get LDTP format accessibile name @param acc: Accessible handle @type acc: object @return: object type, stripped object name (associated / direct), associated label @rtype: tuple """ actual_r...
[ "Get", "LDTP", "format", "accessibile", "name" ]
alex-kostirin/pyatomac
python
https://github.com/alex-kostirin/pyatomac/blob/3f46f6feb4504315eec07abb18bb41be4d257aeb/atomac/ldtpd/utils.py#L222-L250
[ "def", "_ldtpize_accessible", "(", "self", ",", "acc", ")", ":", "actual_role", "=", "self", ".", "_get_role", "(", "acc", ")", "label", "=", "self", ".", "_get_title", "(", "acc", ")", "if", "re", ".", "match", "(", "\"AXWindow\"", ",", "actual_role", ...
3f46f6feb4504315eec07abb18bb41be4d257aeb
valid
Utils._glob_match
Match given string, by escaping regex characters
atomac/ldtpd/utils.py
def _glob_match(self, pattern, string): """ Match given string, by escaping regex characters """ # regex flags Multi-line, Unicode, Locale return bool(re.match(fnmatch.translate(pattern), string, re.M | re.U | re.L))
def _glob_match(self, pattern, string): """ Match given string, by escaping regex characters """ # regex flags Multi-line, Unicode, Locale return bool(re.match(fnmatch.translate(pattern), string, re.M | re.U | re.L))
[ "Match", "given", "string", "by", "escaping", "regex", "characters" ]
alex-kostirin/pyatomac
python
https://github.com/alex-kostirin/pyatomac/blob/3f46f6feb4504315eec07abb18bb41be4d257aeb/atomac/ldtpd/utils.py#L252-L258
[ "def", "_glob_match", "(", "self", ",", "pattern", ",", "string", ")", ":", "# regex flags Multi-line, Unicode, Locale", "return", "bool", "(", "re", ".", "match", "(", "fnmatch", ".", "translate", "(", "pattern", ")", ",", "string", ",", "re", ".", "M", "...
3f46f6feb4504315eec07abb18bb41be4d257aeb
valid
Menu.selectmenuitem
Select (click) a menu item. @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to look for, either full name, LDTP's name convention, or a Unix glob. Or menu heirarchy ...
atomac/ldtpd/menu.py
def selectmenuitem(self, window_name, object_name): """ Select (click) a menu item. @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to look for, either full n...
def selectmenuitem(self, window_name, object_name): """ Select (click) a menu item. @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to look for, either full n...
[ "Select", "(", "click", ")", "a", "menu", "item", "." ]
alex-kostirin/pyatomac
python
https://github.com/alex-kostirin/pyatomac/blob/3f46f6feb4504315eec07abb18bb41be4d257aeb/atomac/ldtpd/menu.py#L50-L68
[ "def", "selectmenuitem", "(", "self", ",", "window_name", ",", "object_name", ")", ":", "menu_handle", "=", "self", ".", "_get_menu_handle", "(", "window_name", ",", "object_name", ")", "if", "not", "menu_handle", ".", "AXEnabled", ":", "raise", "LdtpServerExcep...
3f46f6feb4504315eec07abb18bb41be4d257aeb
valid
Menu.doesmenuitemexist
Check a menu item exist. @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to look for, either full name, LDTP's name convention, or a Unix glob. Or menu heirarchy ...
atomac/ldtpd/menu.py
def doesmenuitemexist(self, window_name, object_name): """ Check a menu item exist. @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to look for, either full n...
def doesmenuitemexist(self, window_name, object_name): """ Check a menu item exist. @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to look for, either full n...
[ "Check", "a", "menu", "item", "exist", "." ]
alex-kostirin/pyatomac
python
https://github.com/alex-kostirin/pyatomac/blob/3f46f6feb4504315eec07abb18bb41be4d257aeb/atomac/ldtpd/menu.py#L70-L91
[ "def", "doesmenuitemexist", "(", "self", ",", "window_name", ",", "object_name", ")", ":", "try", ":", "menu_handle", "=", "self", ".", "_get_menu_handle", "(", "window_name", ",", "object_name", ",", "False", ")", "return", "1", "except", "LdtpServerException",...
3f46f6feb4504315eec07abb18bb41be4d257aeb
valid
Menu.menuitemenabled
Verify a menu item is enabled @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to look for, either full name, LDTP's name convention, or a Unix glob. Or menu heirarchy...
atomac/ldtpd/menu.py
def menuitemenabled(self, window_name, object_name): """ Verify a menu item is enabled @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to look for, either ful...
def menuitemenabled(self, window_name, object_name): """ Verify a menu item is enabled @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to look for, either ful...
[ "Verify", "a", "menu", "item", "is", "enabled" ]
alex-kostirin/pyatomac
python
https://github.com/alex-kostirin/pyatomac/blob/3f46f6feb4504315eec07abb18bb41be4d257aeb/atomac/ldtpd/menu.py#L93-L114
[ "def", "menuitemenabled", "(", "self", ",", "window_name", ",", "object_name", ")", ":", "try", ":", "menu_handle", "=", "self", ".", "_get_menu_handle", "(", "window_name", ",", "object_name", ",", "False", ")", "if", "menu_handle", ".", "AXEnabled", ":", "...
3f46f6feb4504315eec07abb18bb41be4d257aeb
valid
Menu.listsubmenus
List children of menu item @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to look for, either full name, LDTP's name convention, or a Unix glob. Or menu heir...
atomac/ldtpd/menu.py
def listsubmenus(self, window_name, object_name): """ List children of menu item @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to look for, either f...
def listsubmenus(self, window_name, object_name): """ List children of menu item @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to look for, either f...
[ "List", "children", "of", "menu", "item", "@param", "window_name", ":", "Window", "name", "to", "look", "for", "either", "full", "name", "LDTP", "s", "name", "convention", "or", "a", "Unix", "glob", ".", "@type", "window_name", ":", "string", "@param", "ob...
alex-kostirin/pyatomac
python
https://github.com/alex-kostirin/pyatomac/blob/3f46f6feb4504315eec07abb18bb41be4d257aeb/atomac/ldtpd/menu.py#L116-L155
[ "def", "listsubmenus", "(", "self", ",", "window_name", ",", "object_name", ")", ":", "menu_handle", "=", "self", ".", "_get_menu_handle", "(", "window_name", ",", "object_name", ")", "role", ",", "label", "=", "self", ".", "_ldtpize_accessible", "(", "menu_ha...
3f46f6feb4504315eec07abb18bb41be4d257aeb
valid
Menu.verifymenucheck
Verify a menu item is checked @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to look for, either full name, LDTP's name convention, or a Unix glob. Or menu heirarchy...
atomac/ldtpd/menu.py
def verifymenucheck(self, window_name, object_name): """ Verify a menu item is checked @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to look for, either ful...
def verifymenucheck(self, window_name, object_name): """ Verify a menu item is checked @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to look for, either ful...
[ "Verify", "a", "menu", "item", "is", "checked" ]
alex-kostirin/pyatomac
python
https://github.com/alex-kostirin/pyatomac/blob/3f46f6feb4504315eec07abb18bb41be4d257aeb/atomac/ldtpd/menu.py#L157-L182
[ "def", "verifymenucheck", "(", "self", ",", "window_name", ",", "object_name", ")", ":", "try", ":", "menu_handle", "=", "self", ".", "_get_menu_handle", "(", "window_name", ",", "object_name", ",", "False", ")", "try", ":", "if", "menu_handle", ".", "AXMenu...
3f46f6feb4504315eec07abb18bb41be4d257aeb
valid
Menu.menucheck
Check (click) a menu item. @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to look for, either full name, LDTP's name convention, or a Unix glob. Or menu heirarchy ...
atomac/ldtpd/menu.py
def menucheck(self, window_name, object_name): """ Check (click) a menu item. @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to look for, either full name, ...
def menucheck(self, window_name, object_name): """ Check (click) a menu item. @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to look for, either full name, ...
[ "Check", "(", "click", ")", "a", "menu", "item", "." ]
alex-kostirin/pyatomac
python
https://github.com/alex-kostirin/pyatomac/blob/3f46f6feb4504315eec07abb18bb41be4d257aeb/atomac/ldtpd/menu.py#L211-L235
[ "def", "menucheck", "(", "self", ",", "window_name", ",", "object_name", ")", ":", "menu_handle", "=", "self", ".", "_get_menu_handle", "(", "window_name", ",", "object_name", ")", "if", "not", "menu_handle", ".", "AXEnabled", ":", "raise", "LdtpServerException"...
3f46f6feb4504315eec07abb18bb41be4d257aeb
valid
BaseAXUIElement._getRunningApps
Get a list of the running applications.
atomac/AXClasses.py
def _getRunningApps(cls): """Get a list of the running applications.""" def runLoopAndExit(): AppHelper.stopEventLoop() AppHelper.callLater(1, runLoopAndExit) AppHelper.runConsoleEventLoop() # Get a list of running applications ws = AppKit.NSWorkspace.shared...
def _getRunningApps(cls): """Get a list of the running applications.""" def runLoopAndExit(): AppHelper.stopEventLoop() AppHelper.callLater(1, runLoopAndExit) AppHelper.runConsoleEventLoop() # Get a list of running applications ws = AppKit.NSWorkspace.shared...
[ "Get", "a", "list", "of", "the", "running", "applications", "." ]
alex-kostirin/pyatomac
python
https://github.com/alex-kostirin/pyatomac/blob/3f46f6feb4504315eec07abb18bb41be4d257aeb/atomac/AXClasses.py#L48-L59
[ "def", "_getRunningApps", "(", "cls", ")", ":", "def", "runLoopAndExit", "(", ")", ":", "AppHelper", ".", "stopEventLoop", "(", ")", "AppHelper", ".", "callLater", "(", "1", ",", "runLoopAndExit", ")", "AppHelper", ".", "runConsoleEventLoop", "(", ")", "# Ge...
3f46f6feb4504315eec07abb18bb41be4d257aeb
valid
BaseAXUIElement.getFrontmostApp
Get the current frontmost application. Raise a ValueError exception if no GUI applications are found.
atomac/AXClasses.py
def getFrontmostApp(cls): """Get the current frontmost application. Raise a ValueError exception if no GUI applications are found. """ # Refresh the runningApplications list apps = cls._getRunningApps() for app in apps: pid = app.processIdentifier() ...
def getFrontmostApp(cls): """Get the current frontmost application. Raise a ValueError exception if no GUI applications are found. """ # Refresh the runningApplications list apps = cls._getRunningApps() for app in apps: pid = app.processIdentifier() ...
[ "Get", "the", "current", "frontmost", "application", "." ]
alex-kostirin/pyatomac
python
https://github.com/alex-kostirin/pyatomac/blob/3f46f6feb4504315eec07abb18bb41be4d257aeb/atomac/AXClasses.py#L98-L120
[ "def", "getFrontmostApp", "(", "cls", ")", ":", "# Refresh the runningApplications list", "apps", "=", "cls", ".", "_getRunningApps", "(", ")", "for", "app", "in", "apps", ":", "pid", "=", "app", ".", "processIdentifier", "(", ")", "ref", "=", "cls", ".", ...
3f46f6feb4504315eec07abb18bb41be4d257aeb
valid
BaseAXUIElement.getAnyAppWithWindow
Get a random app that has windows. Raise a ValueError exception if no GUI applications are found.
atomac/AXClasses.py
def getAnyAppWithWindow(cls): """Get a random app that has windows. Raise a ValueError exception if no GUI applications are found. """ # Refresh the runningApplications list apps = cls._getRunningApps() for app in apps: pid = app.processIdentifier() ...
def getAnyAppWithWindow(cls): """Get a random app that has windows. Raise a ValueError exception if no GUI applications are found. """ # Refresh the runningApplications list apps = cls._getRunningApps() for app in apps: pid = app.processIdentifier() ...
[ "Get", "a", "random", "app", "that", "has", "windows", "." ]
alex-kostirin/pyatomac
python
https://github.com/alex-kostirin/pyatomac/blob/3f46f6feb4504315eec07abb18bb41be4d257aeb/atomac/AXClasses.py#L123-L135
[ "def", "getAnyAppWithWindow", "(", "cls", ")", ":", "# Refresh the runningApplications list", "apps", "=", "cls", ".", "_getRunningApps", "(", ")", "for", "app", "in", "apps", ":", "pid", "=", "app", ".", "processIdentifier", "(", ")", "ref", "=", "cls", "."...
3f46f6feb4504315eec07abb18bb41be4d257aeb
valid
BaseAXUIElement.launchAppByBundleId
Launch the application with the specified bundle ID
atomac/AXClasses.py
def launchAppByBundleId(bundleID): """Launch the application with the specified bundle ID""" # NSWorkspaceLaunchAllowingClassicStartup does nothing on any # modern system that doesn't have the classic environment installed. # Encountered a bug when passing 0 for no options on 10.6 PyObjC...
def launchAppByBundleId(bundleID): """Launch the application with the specified bundle ID""" # NSWorkspaceLaunchAllowingClassicStartup does nothing on any # modern system that doesn't have the classic environment installed. # Encountered a bug when passing 0 for no options on 10.6 PyObjC...
[ "Launch", "the", "application", "with", "the", "specified", "bundle", "ID" ]
alex-kostirin/pyatomac
python
https://github.com/alex-kostirin/pyatomac/blob/3f46f6feb4504315eec07abb18bb41be4d257aeb/atomac/AXClasses.py#L153-L168
[ "def", "launchAppByBundleId", "(", "bundleID", ")", ":", "# NSWorkspaceLaunchAllowingClassicStartup does nothing on any", "# modern system that doesn't have the classic environment installed.", "# Encountered a bug when passing 0 for no options on 10.6 PyObjC.", "ws", "=", "AppKit", ".", "...
3f46f6feb4504315eec07abb18bb41be4d257aeb
valid
BaseAXUIElement.launchAppByBundlePath
Launch app with a given bundle path. Return True if succeed.
atomac/AXClasses.py
def launchAppByBundlePath(bundlePath, arguments=None): """Launch app with a given bundle path. Return True if succeed. """ if arguments is None: arguments = [] bundleUrl = NSURL.fileURLWithPath_(bundlePath) workspace = AppKit.NSWorkspace.sharedWorkspace() ...
def launchAppByBundlePath(bundlePath, arguments=None): """Launch app with a given bundle path. Return True if succeed. """ if arguments is None: arguments = [] bundleUrl = NSURL.fileURLWithPath_(bundlePath) workspace = AppKit.NSWorkspace.sharedWorkspace() ...
[ "Launch", "app", "with", "a", "given", "bundle", "path", "." ]
alex-kostirin/pyatomac
python
https://github.com/alex-kostirin/pyatomac/blob/3f46f6feb4504315eec07abb18bb41be4d257aeb/atomac/AXClasses.py#L171-L192
[ "def", "launchAppByBundlePath", "(", "bundlePath", ",", "arguments", "=", "None", ")", ":", "if", "arguments", "is", "None", ":", "arguments", "=", "[", "]", "bundleUrl", "=", "NSURL", ".", "fileURLWithPath_", "(", "bundlePath", ")", "workspace", "=", "AppKi...
3f46f6feb4504315eec07abb18bb41be4d257aeb
valid
BaseAXUIElement.terminateAppByBundleId
Terminate app with a given bundle ID. Requires 10.6. Return True if succeed.
atomac/AXClasses.py
def terminateAppByBundleId(bundleID): """Terminate app with a given bundle ID. Requires 10.6. Return True if succeed. """ ra = AppKit.NSRunningApplication if getattr(ra, "runningApplicationsWithBundleIdentifier_"): appList = ra.runningApplicationsWithBundleId...
def terminateAppByBundleId(bundleID): """Terminate app with a given bundle ID. Requires 10.6. Return True if succeed. """ ra = AppKit.NSRunningApplication if getattr(ra, "runningApplicationsWithBundleIdentifier_"): appList = ra.runningApplicationsWithBundleId...
[ "Terminate", "app", "with", "a", "given", "bundle", "ID", ".", "Requires", "10", ".", "6", "." ]
alex-kostirin/pyatomac
python
https://github.com/alex-kostirin/pyatomac/blob/3f46f6feb4504315eec07abb18bb41be4d257aeb/atomac/AXClasses.py#L195-L207
[ "def", "terminateAppByBundleId", "(", "bundleID", ")", ":", "ra", "=", "AppKit", ".", "NSRunningApplication", "if", "getattr", "(", "ra", ",", "\"runningApplicationsWithBundleIdentifier_\"", ")", ":", "appList", "=", "ra", ".", "runningApplicationsWithBundleIdentifier_"...
3f46f6feb4504315eec07abb18bb41be4d257aeb
valid
BaseAXUIElement._postQueuedEvents
Private method to post queued events (e.g. Quartz events). Each event in queue is a tuple (event call, args to event call).
atomac/AXClasses.py
def _postQueuedEvents(self, interval=0.01): """Private method to post queued events (e.g. Quartz events). Each event in queue is a tuple (event call, args to event call). """ while len(self.eventList) > 0: (nextEvent, args) = self.eventList.popleft() nextEvent(*a...
def _postQueuedEvents(self, interval=0.01): """Private method to post queued events (e.g. Quartz events). Each event in queue is a tuple (event call, args to event call). """ while len(self.eventList) > 0: (nextEvent, args) = self.eventList.popleft() nextEvent(*a...
[ "Private", "method", "to", "post", "queued", "events", "(", "e", ".", "g", ".", "Quartz", "events", ")", "." ]
alex-kostirin/pyatomac
python
https://github.com/alex-kostirin/pyatomac/blob/3f46f6feb4504315eec07abb18bb41be4d257aeb/atomac/AXClasses.py#L219-L227
[ "def", "_postQueuedEvents", "(", "self", ",", "interval", "=", "0.01", ")", ":", "while", "len", "(", "self", ".", "eventList", ")", ">", "0", ":", "(", "nextEvent", ",", "args", ")", "=", "self", ".", "eventList", ".", "popleft", "(", ")", "nextEven...
3f46f6feb4504315eec07abb18bb41be4d257aeb
valid
BaseAXUIElement._queueEvent
Private method to queue events to run. Each event in queue is a tuple (event call, args to event call).
atomac/AXClasses.py
def _queueEvent(self, event, args): """Private method to queue events to run. Each event in queue is a tuple (event call, args to event call). """ if not hasattr(self, 'eventList'): self.eventList = deque([(event, args)]) return self.eventList.append((eve...
def _queueEvent(self, event, args): """Private method to queue events to run. Each event in queue is a tuple (event call, args to event call). """ if not hasattr(self, 'eventList'): self.eventList = deque([(event, args)]) return self.eventList.append((eve...
[ "Private", "method", "to", "queue", "events", "to", "run", "." ]
alex-kostirin/pyatomac
python
https://github.com/alex-kostirin/pyatomac/blob/3f46f6feb4504315eec07abb18bb41be4d257aeb/atomac/AXClasses.py#L234-L242
[ "def", "_queueEvent", "(", "self", ",", "event", ",", "args", ")", ":", "if", "not", "hasattr", "(", "self", ",", "'eventList'", ")", ":", "self", ".", "eventList", "=", "deque", "(", "[", "(", "event", ",", "args", ")", "]", ")", "return", "self",...
3f46f6feb4504315eec07abb18bb41be4d257aeb
valid
BaseAXUIElement._addKeyToQueue
Add keypress to queue. Parameters: key character or constant referring to a non-alpha-numeric key (e.g. RETURN or TAB) modifiers global or app specific Returns: None or raise ValueError exception.
atomac/AXClasses.py
def _addKeyToQueue(self, keychr, modFlags=0, globally=False): """Add keypress to queue. Parameters: key character or constant referring to a non-alpha-numeric key (e.g. RETURN or TAB) modifiers global or app specific Returns: None or r...
def _addKeyToQueue(self, keychr, modFlags=0, globally=False): """Add keypress to queue. Parameters: key character or constant referring to a non-alpha-numeric key (e.g. RETURN or TAB) modifiers global or app specific Returns: None or r...
[ "Add", "keypress", "to", "queue", "." ]
alex-kostirin/pyatomac
python
https://github.com/alex-kostirin/pyatomac/blob/3f46f6feb4504315eec07abb18bb41be4d257aeb/atomac/AXClasses.py#L244-L307
[ "def", "_addKeyToQueue", "(", "self", ",", "keychr", ",", "modFlags", "=", "0", ",", "globally", "=", "False", ")", ":", "# Awkward, but makes modifier-key-only combinations possible", "# (since sendKeyWithModifiers() calls this)", "if", "not", "keychr", ":", "return", ...
3f46f6feb4504315eec07abb18bb41be4d257aeb
valid
BaseAXUIElement._sendKey
Send one character with no modifiers. Parameters: key character or constant referring to a non-alpha-numeric key (e.g. RETURN or TAB) modifier flags, global or app specific Returns: None or raise ValueError exception
atomac/AXClasses.py
def _sendKey(self, keychr, modFlags=0, globally=False): """Send one character with no modifiers. Parameters: key character or constant referring to a non-alpha-numeric key (e.g. RETURN or TAB) modifier flags, global or app specific Ret...
def _sendKey(self, keychr, modFlags=0, globally=False): """Send one character with no modifiers. Parameters: key character or constant referring to a non-alpha-numeric key (e.g. RETURN or TAB) modifier flags, global or app specific Ret...
[ "Send", "one", "character", "with", "no", "modifiers", "." ]
alex-kostirin/pyatomac
python
https://github.com/alex-kostirin/pyatomac/blob/3f46f6feb4504315eec07abb18bb41be4d257aeb/atomac/AXClasses.py#L309-L327
[ "def", "_sendKey", "(", "self", ",", "keychr", ",", "modFlags", "=", "0", ",", "globally", "=", "False", ")", ":", "escapedChrs", "=", "{", "'\\n'", ":", "AXKeyCodeConstants", ".", "RETURN", ",", "'\\r'", ":", "AXKeyCodeConstants", ".", "RETURN", ",", "'...
3f46f6feb4504315eec07abb18bb41be4d257aeb
valid
BaseAXUIElement._pressModifiers
Press given modifiers (provided in list form). Parameters: modifiers list, global or app specific Optional: keypressed state (default is True (down)) Returns: Unsigned int representing flags to set
atomac/AXClasses.py
def _pressModifiers(self, modifiers, pressed=True, globally=False): """Press given modifiers (provided in list form). Parameters: modifiers list, global or app specific Optional: keypressed state (default is True (down)) Returns: Unsigned int representing flags to set """ ...
def _pressModifiers(self, modifiers, pressed=True, globally=False): """Press given modifiers (provided in list form). Parameters: modifiers list, global or app specific Optional: keypressed state (default is True (down)) Returns: Unsigned int representing flags to set """ ...
[ "Press", "given", "modifiers", "(", "provided", "in", "list", "form", ")", "." ]
alex-kostirin/pyatomac
python
https://github.com/alex-kostirin/pyatomac/blob/3f46f6feb4504315eec07abb18bb41be4d257aeb/atomac/AXClasses.py#L338-L382
[ "def", "_pressModifiers", "(", "self", ",", "modifiers", ",", "pressed", "=", "True", ",", "globally", "=", "False", ")", ":", "if", "not", "isinstance", "(", "modifiers", ",", "list", ")", ":", "raise", "TypeError", "(", "'Please provide modifiers in list for...
3f46f6feb4504315eec07abb18bb41be4d257aeb
valid
BaseAXUIElement._holdModifierKeys
Hold given modifier keys (provided in list form). Parameters: modifiers list Returns: Unsigned int representing flags to set
atomac/AXClasses.py
def _holdModifierKeys(self, modifiers): """Hold given modifier keys (provided in list form). Parameters: modifiers list Returns: Unsigned int representing flags to set """ modFlags = self._pressModifiers(modifiers) # Post the queued keypresses: self._postQueuedEv...
def _holdModifierKeys(self, modifiers): """Hold given modifier keys (provided in list form). Parameters: modifiers list Returns: Unsigned int representing flags to set """ modFlags = self._pressModifiers(modifiers) # Post the queued keypresses: self._postQueuedEv...
[ "Hold", "given", "modifier", "keys", "(", "provided", "in", "list", "form", ")", "." ]
alex-kostirin/pyatomac
python
https://github.com/alex-kostirin/pyatomac/blob/3f46f6feb4504315eec07abb18bb41be4d257aeb/atomac/AXClasses.py#L384-L393
[ "def", "_holdModifierKeys", "(", "self", ",", "modifiers", ")", ":", "modFlags", "=", "self", ".", "_pressModifiers", "(", "modifiers", ")", "# Post the queued keypresses:", "self", ".", "_postQueuedEvents", "(", ")", "return", "modFlags" ]
3f46f6feb4504315eec07abb18bb41be4d257aeb
valid
BaseAXUIElement._releaseModifiers
Release given modifiers (provided in list form). Parameters: modifiers list Returns: None
atomac/AXClasses.py
def _releaseModifiers(self, modifiers, globally=False): """Release given modifiers (provided in list form). Parameters: modifiers list Returns: None """ # Release them in reverse order from pressing them: modifiers.reverse() modFlags = self._pressModifiers(modifi...
def _releaseModifiers(self, modifiers, globally=False): """Release given modifiers (provided in list form). Parameters: modifiers list Returns: None """ # Release them in reverse order from pressing them: modifiers.reverse() modFlags = self._pressModifiers(modifi...
[ "Release", "given", "modifiers", "(", "provided", "in", "list", "form", ")", "." ]
alex-kostirin/pyatomac
python
https://github.com/alex-kostirin/pyatomac/blob/3f46f6feb4504315eec07abb18bb41be4d257aeb/atomac/AXClasses.py#L395-L405
[ "def", "_releaseModifiers", "(", "self", ",", "modifiers", ",", "globally", "=", "False", ")", ":", "# Release them in reverse order from pressing them:", "modifiers", ".", "reverse", "(", ")", "modFlags", "=", "self", ".", "_pressModifiers", "(", "modifiers", ",", ...
3f46f6feb4504315eec07abb18bb41be4d257aeb
valid
BaseAXUIElement._releaseModifierKeys
Release given modifier keys (provided in list form). Parameters: modifiers list Returns: Unsigned int representing flags to set
atomac/AXClasses.py
def _releaseModifierKeys(self, modifiers): """Release given modifier keys (provided in list form). Parameters: modifiers list Returns: Unsigned int representing flags to set """ modFlags = self._releaseModifiers(modifiers) # Post the queued keypresses: self._post...
def _releaseModifierKeys(self, modifiers): """Release given modifier keys (provided in list form). Parameters: modifiers list Returns: Unsigned int representing flags to set """ modFlags = self._releaseModifiers(modifiers) # Post the queued keypresses: self._post...
[ "Release", "given", "modifier", "keys", "(", "provided", "in", "list", "form", ")", "." ]
alex-kostirin/pyatomac
python
https://github.com/alex-kostirin/pyatomac/blob/3f46f6feb4504315eec07abb18bb41be4d257aeb/atomac/AXClasses.py#L407-L416
[ "def", "_releaseModifierKeys", "(", "self", ",", "modifiers", ")", ":", "modFlags", "=", "self", ".", "_releaseModifiers", "(", "modifiers", ")", "# Post the queued keypresses:", "self", ".", "_postQueuedEvents", "(", ")", "return", "modFlags" ]
3f46f6feb4504315eec07abb18bb41be4d257aeb
valid
BaseAXUIElement._isSingleCharacter
Check whether given keyboard character is a single character. Parameters: key character which will be checked. Returns: True when given key character is a single character.
atomac/AXClasses.py
def _isSingleCharacter(keychr): """Check whether given keyboard character is a single character. Parameters: key character which will be checked. Returns: True when given key character is a single character. """ if not keychr: return False # Regular character...
def _isSingleCharacter(keychr): """Check whether given keyboard character is a single character. Parameters: key character which will be checked. Returns: True when given key character is a single character. """ if not keychr: return False # Regular character...
[ "Check", "whether", "given", "keyboard", "character", "is", "a", "single", "character", "." ]
alex-kostirin/pyatomac
python
https://github.com/alex-kostirin/pyatomac/blob/3f46f6feb4504315eec07abb18bb41be4d257aeb/atomac/AXClasses.py#L419-L432
[ "def", "_isSingleCharacter", "(", "keychr", ")", ":", "if", "not", "keychr", ":", "return", "False", "# Regular character case.", "if", "len", "(", "keychr", ")", "==", "1", ":", "return", "True", "# Tagged character case.", "return", "keychr", ".", "count", "...
3f46f6feb4504315eec07abb18bb41be4d257aeb
valid
BaseAXUIElement._sendKeyWithModifiers
Send one character with the given modifiers pressed. Parameters: key character, list of modifiers, global or app specific Returns: None or raise ValueError exception
atomac/AXClasses.py
def _sendKeyWithModifiers(self, keychr, modifiers, globally=False): """Send one character with the given modifiers pressed. Parameters: key character, list of modifiers, global or app specific Returns: None or raise ValueError exception """ if not self._isSingleCharacter(keychr)...
def _sendKeyWithModifiers(self, keychr, modifiers, globally=False): """Send one character with the given modifiers pressed. Parameters: key character, list of modifiers, global or app specific Returns: None or raise ValueError exception """ if not self._isSingleCharacter(keychr)...
[ "Send", "one", "character", "with", "the", "given", "modifiers", "pressed", "." ]
alex-kostirin/pyatomac
python
https://github.com/alex-kostirin/pyatomac/blob/3f46f6feb4504315eec07abb18bb41be4d257aeb/atomac/AXClasses.py#L434-L455
[ "def", "_sendKeyWithModifiers", "(", "self", ",", "keychr", ",", "modifiers", ",", "globally", "=", "False", ")", ":", "if", "not", "self", ".", "_isSingleCharacter", "(", "keychr", ")", ":", "raise", "ValueError", "(", "'Please provide only one character to send'...
3f46f6feb4504315eec07abb18bb41be4d257aeb
valid
BaseAXUIElement._queueMouseButton
Private method to handle generic mouse button clicking. Parameters: coord (x, y) to click, mouseButton (e.g., kCGMouseButtonLeft), modFlags set (int) Optional: clickCount (default 1; set to 2 for double-click; 3 for triple-click on host) Returns: None
atomac/AXClasses.py
def _queueMouseButton(self, coord, mouseButton, modFlags, clickCount=1, dest_coord=None): """Private method to handle generic mouse button clicking. Parameters: coord (x, y) to click, mouseButton (e.g., kCGMouseButtonLeft), modFlags set (int) Option...
def _queueMouseButton(self, coord, mouseButton, modFlags, clickCount=1, dest_coord=None): """Private method to handle generic mouse button clicking. Parameters: coord (x, y) to click, mouseButton (e.g., kCGMouseButtonLeft), modFlags set (int) Option...
[ "Private", "method", "to", "handle", "generic", "mouse", "button", "clicking", "." ]
alex-kostirin/pyatomac
python
https://github.com/alex-kostirin/pyatomac/blob/3f46f6feb4504315eec07abb18bb41be4d257aeb/atomac/AXClasses.py#L457-L529
[ "def", "_queueMouseButton", "(", "self", ",", "coord", ",", "mouseButton", ",", "modFlags", ",", "clickCount", "=", "1", ",", "dest_coord", "=", "None", ")", ":", "# For now allow only left and right mouse buttons:", "mouseButtons", "=", "{", "Quartz", ".", "kCGMo...
3f46f6feb4504315eec07abb18bb41be4d257aeb
valid
BaseAXUIElement._leftMouseDragged
Private method to handle generic mouse left button dragging and dropping. Parameters: stopCoord(x,y) drop point Optional: strCoord (x, y) drag point, default (0,0) get current mouse position speed (int) 1 to unlimit, simulate mouse moving ac...
atomac/AXClasses.py
def _leftMouseDragged(self, stopCoord, strCoord, speed): """Private method to handle generic mouse left button dragging and dropping. Parameters: stopCoord(x,y) drop point Optional: strCoord (x, y) drag point, default (0,0) get current mouse position ...
def _leftMouseDragged(self, stopCoord, strCoord, speed): """Private method to handle generic mouse left button dragging and dropping. Parameters: stopCoord(x,y) drop point Optional: strCoord (x, y) drag point, default (0,0) get current mouse position ...
[ "Private", "method", "to", "handle", "generic", "mouse", "left", "button", "dragging", "and", "dropping", "." ]
alex-kostirin/pyatomac
python
https://github.com/alex-kostirin/pyatomac/blob/3f46f6feb4504315eec07abb18bb41be4d257aeb/atomac/AXClasses.py#L531-L604
[ "def", "_leftMouseDragged", "(", "self", ",", "stopCoord", ",", "strCoord", ",", "speed", ")", ":", "# To direct output to the correct application need the PSN:", "appPid", "=", "self", ".", "_getPid", "(", ")", "# Get current position as start point if strCoord not given", ...
3f46f6feb4504315eec07abb18bb41be4d257aeb
valid
BaseAXUIElement._waitFor
Wait for a particular UI event to occur; this can be built upon in NativeUIElement for specific convenience methods.
atomac/AXClasses.py
def _waitFor(self, timeout, notification, **kwargs): """Wait for a particular UI event to occur; this can be built upon in NativeUIElement for specific convenience methods. """ callback = self._matchOther retelem = None callbackArgs = None callbackKwargs = None ...
def _waitFor(self, timeout, notification, **kwargs): """Wait for a particular UI event to occur; this can be built upon in NativeUIElement for specific convenience methods. """ callback = self._matchOther retelem = None callbackArgs = None callbackKwargs = None ...
[ "Wait", "for", "a", "particular", "UI", "event", "to", "occur", ";", "this", "can", "be", "built", "upon", "in", "NativeUIElement", "for", "specific", "convenience", "methods", "." ]
alex-kostirin/pyatomac
python
https://github.com/alex-kostirin/pyatomac/blob/3f46f6feb4504315eec07abb18bb41be4d257aeb/atomac/AXClasses.py#L606-L654
[ "def", "_waitFor", "(", "self", ",", "timeout", ",", "notification", ",", "*", "*", "kwargs", ")", ":", "callback", "=", "self", ".", "_matchOther", "retelem", "=", "None", "callbackArgs", "=", "None", "callbackKwargs", "=", "None", "# Allow customization of t...
3f46f6feb4504315eec07abb18bb41be4d257aeb
valid
BaseAXUIElement.waitForFocusToMatchCriteria
Convenience method to wait for focused element to change (to element matching kwargs criteria). Returns: Element or None
atomac/AXClasses.py
def waitForFocusToMatchCriteria(self, timeout=10, **kwargs): """Convenience method to wait for focused element to change (to element matching kwargs criteria). Returns: Element or None """ def _matchFocused(retelem, **kwargs): return retelem if retelem._match(**kwa...
def waitForFocusToMatchCriteria(self, timeout=10, **kwargs): """Convenience method to wait for focused element to change (to element matching kwargs criteria). Returns: Element or None """ def _matchFocused(retelem, **kwargs): return retelem if retelem._match(**kwa...
[ "Convenience", "method", "to", "wait", "for", "focused", "element", "to", "change", "(", "to", "element", "matching", "kwargs", "criteria", ")", "." ]
alex-kostirin/pyatomac
python
https://github.com/alex-kostirin/pyatomac/blob/3f46f6feb4504315eec07abb18bb41be4d257aeb/atomac/AXClasses.py#L656-L671
[ "def", "waitForFocusToMatchCriteria", "(", "self", ",", "timeout", "=", "10", ",", "*", "*", "kwargs", ")", ":", "def", "_matchFocused", "(", "retelem", ",", "*", "*", "kwargs", ")", ":", "return", "retelem", "if", "retelem", ".", "_match", "(", "*", "...
3f46f6feb4504315eec07abb18bb41be4d257aeb
valid
BaseAXUIElement._getActions
Retrieve a list of actions supported by the object.
atomac/AXClasses.py
def _getActions(self): """Retrieve a list of actions supported by the object.""" actions = _a11y.AXUIElement._getActions(self) # strip leading AX from actions - help distinguish them from attributes return [action[2:] for action in actions]
def _getActions(self): """Retrieve a list of actions supported by the object.""" actions = _a11y.AXUIElement._getActions(self) # strip leading AX from actions - help distinguish them from attributes return [action[2:] for action in actions]
[ "Retrieve", "a", "list", "of", "actions", "supported", "by", "the", "object", "." ]
alex-kostirin/pyatomac
python
https://github.com/alex-kostirin/pyatomac/blob/3f46f6feb4504315eec07abb18bb41be4d257aeb/atomac/AXClasses.py#L673-L677
[ "def", "_getActions", "(", "self", ")", ":", "actions", "=", "_a11y", ".", "AXUIElement", ".", "_getActions", "(", "self", ")", "# strip leading AX from actions - help distinguish them from attributes", "return", "[", "action", "[", "2", ":", "]", "for", "action", ...
3f46f6feb4504315eec07abb18bb41be4d257aeb
valid
BaseAXUIElement._performAction
Perform the specified action.
atomac/AXClasses.py
def _performAction(self, action): """Perform the specified action.""" try: _a11y.AXUIElement._performAction(self, 'AX%s' % action) except _a11y.ErrorUnsupported as e: sierra_ver = '10.12' if mac_ver()[0] < sierra_ver: raise e else: ...
def _performAction(self, action): """Perform the specified action.""" try: _a11y.AXUIElement._performAction(self, 'AX%s' % action) except _a11y.ErrorUnsupported as e: sierra_ver = '10.12' if mac_ver()[0] < sierra_ver: raise e else: ...
[ "Perform", "the", "specified", "action", "." ]
alex-kostirin/pyatomac
python
https://github.com/alex-kostirin/pyatomac/blob/3f46f6feb4504315eec07abb18bb41be4d257aeb/atomac/AXClasses.py#L679-L688
[ "def", "_performAction", "(", "self", ",", "action", ")", ":", "try", ":", "_a11y", ".", "AXUIElement", ".", "_performAction", "(", "self", ",", "'AX%s'", "%", "action", ")", "except", "_a11y", ".", "ErrorUnsupported", "as", "e", ":", "sierra_ver", "=", ...
3f46f6feb4504315eec07abb18bb41be4d257aeb
valid
BaseAXUIElement._generateChildren
Generator which yields all AXChildren of the object.
atomac/AXClasses.py
def _generateChildren(self): """Generator which yields all AXChildren of the object.""" try: children = self.AXChildren except _a11y.Error: return if children: for child in children: yield child
def _generateChildren(self): """Generator which yields all AXChildren of the object.""" try: children = self.AXChildren except _a11y.Error: return if children: for child in children: yield child
[ "Generator", "which", "yields", "all", "AXChildren", "of", "the", "object", "." ]
alex-kostirin/pyatomac
python
https://github.com/alex-kostirin/pyatomac/blob/3f46f6feb4504315eec07abb18bb41be4d257aeb/atomac/AXClasses.py#L690-L698
[ "def", "_generateChildren", "(", "self", ")", ":", "try", ":", "children", "=", "self", ".", "AXChildren", "except", "_a11y", ".", "Error", ":", "return", "if", "children", ":", "for", "child", "in", "children", ":", "yield", "child" ]
3f46f6feb4504315eec07abb18bb41be4d257aeb
valid
BaseAXUIElement._generateChildrenR
Generator which recursively yields all AXChildren of the object.
atomac/AXClasses.py
def _generateChildrenR(self, target=None): """Generator which recursively yields all AXChildren of the object.""" if target is None: target = self try: children = target.AXChildren except _a11y.Error: return if children: for child i...
def _generateChildrenR(self, target=None): """Generator which recursively yields all AXChildren of the object.""" if target is None: target = self try: children = target.AXChildren except _a11y.Error: return if children: for child i...
[ "Generator", "which", "recursively", "yields", "all", "AXChildren", "of", "the", "object", "." ]
alex-kostirin/pyatomac
python
https://github.com/alex-kostirin/pyatomac/blob/3f46f6feb4504315eec07abb18bb41be4d257aeb/atomac/AXClasses.py#L700-L712
[ "def", "_generateChildrenR", "(", "self", ",", "target", "=", "None", ")", ":", "if", "target", "is", "None", ":", "target", "=", "self", "try", ":", "children", "=", "target", ".", "AXChildren", "except", "_a11y", ".", "Error", ":", "return", "if", "c...
3f46f6feb4504315eec07abb18bb41be4d257aeb
valid
BaseAXUIElement._match
Method which indicates if the object matches specified criteria. Match accepts criteria as kwargs and looks them up on attributes. Actual matching is performed with fnmatch, so shell-like wildcards work within match strings. Examples: obj._match(AXTitle='Terminal*') obj._match(...
atomac/AXClasses.py
def _match(self, **kwargs): """Method which indicates if the object matches specified criteria. Match accepts criteria as kwargs and looks them up on attributes. Actual matching is performed with fnmatch, so shell-like wildcards work within match strings. Examples: obj._match(A...
def _match(self, **kwargs): """Method which indicates if the object matches specified criteria. Match accepts criteria as kwargs and looks them up on attributes. Actual matching is performed with fnmatch, so shell-like wildcards work within match strings. Examples: obj._match(A...
[ "Method", "which", "indicates", "if", "the", "object", "matches", "specified", "criteria", "." ]
alex-kostirin/pyatomac
python
https://github.com/alex-kostirin/pyatomac/blob/3f46f6feb4504315eec07abb18bb41be4d257aeb/atomac/AXClasses.py#L714-L751
[ "def", "_match", "(", "self", ",", "*", "*", "kwargs", ")", ":", "for", "k", "in", "kwargs", ".", "keys", "(", ")", ":", "try", ":", "val", "=", "getattr", "(", "self", ",", "k", ")", "except", "_a11y", ".", "Error", ":", "return", "False", "# ...
3f46f6feb4504315eec07abb18bb41be4d257aeb
valid
BaseAXUIElement._matchOther
Perform _match but on another object, not self.
atomac/AXClasses.py
def _matchOther(self, obj, **kwargs): """Perform _match but on another object, not self.""" if obj is not None: # Need to check that the returned UI element wasn't destroyed first: if self._findFirstR(**kwargs): return obj._match(**kwargs) return False
def _matchOther(self, obj, **kwargs): """Perform _match but on another object, not self.""" if obj is not None: # Need to check that the returned UI element wasn't destroyed first: if self._findFirstR(**kwargs): return obj._match(**kwargs) return False
[ "Perform", "_match", "but", "on", "another", "object", "not", "self", "." ]
alex-kostirin/pyatomac
python
https://github.com/alex-kostirin/pyatomac/blob/3f46f6feb4504315eec07abb18bb41be4d257aeb/atomac/AXClasses.py#L753-L759
[ "def", "_matchOther", "(", "self", ",", "obj", ",", "*", "*", "kwargs", ")", ":", "if", "obj", "is", "not", "None", ":", "# Need to check that the returned UI element wasn't destroyed first:", "if", "self", ".", "_findFirstR", "(", "*", "*", "kwargs", ")", ":"...
3f46f6feb4504315eec07abb18bb41be4d257aeb
valid
BaseAXUIElement._generateFind
Generator which yields matches on AXChildren.
atomac/AXClasses.py
def _generateFind(self, **kwargs): """Generator which yields matches on AXChildren.""" for needle in self._generateChildren(): if needle._match(**kwargs): yield needle
def _generateFind(self, **kwargs): """Generator which yields matches on AXChildren.""" for needle in self._generateChildren(): if needle._match(**kwargs): yield needle
[ "Generator", "which", "yields", "matches", "on", "AXChildren", "." ]
alex-kostirin/pyatomac
python
https://github.com/alex-kostirin/pyatomac/blob/3f46f6feb4504315eec07abb18bb41be4d257aeb/atomac/AXClasses.py#L761-L765
[ "def", "_generateFind", "(", "self", ",", "*", "*", "kwargs", ")", ":", "for", "needle", "in", "self", ".", "_generateChildren", "(", ")", ":", "if", "needle", ".", "_match", "(", "*", "*", "kwargs", ")", ":", "yield", "needle" ]
3f46f6feb4504315eec07abb18bb41be4d257aeb
valid
BaseAXUIElement._generateFindR
Generator which yields matches on AXChildren and their children.
atomac/AXClasses.py
def _generateFindR(self, **kwargs): """Generator which yields matches on AXChildren and their children.""" for needle in self._generateChildrenR(): if needle._match(**kwargs): yield needle
def _generateFindR(self, **kwargs): """Generator which yields matches on AXChildren and their children.""" for needle in self._generateChildrenR(): if needle._match(**kwargs): yield needle
[ "Generator", "which", "yields", "matches", "on", "AXChildren", "and", "their", "children", "." ]
alex-kostirin/pyatomac
python
https://github.com/alex-kostirin/pyatomac/blob/3f46f6feb4504315eec07abb18bb41be4d257aeb/atomac/AXClasses.py#L767-L771
[ "def", "_generateFindR", "(", "self", ",", "*", "*", "kwargs", ")", ":", "for", "needle", "in", "self", ".", "_generateChildrenR", "(", ")", ":", "if", "needle", ".", "_match", "(", "*", "*", "kwargs", ")", ":", "yield", "needle" ]
3f46f6feb4504315eec07abb18bb41be4d257aeb
valid
BaseAXUIElement._findAll
Return a list of all children that match the specified criteria.
atomac/AXClasses.py
def _findAll(self, **kwargs): """Return a list of all children that match the specified criteria.""" result = [] for item in self._generateFind(**kwargs): result.append(item) return result
def _findAll(self, **kwargs): """Return a list of all children that match the specified criteria.""" result = [] for item in self._generateFind(**kwargs): result.append(item) return result
[ "Return", "a", "list", "of", "all", "children", "that", "match", "the", "specified", "criteria", "." ]
alex-kostirin/pyatomac
python
https://github.com/alex-kostirin/pyatomac/blob/3f46f6feb4504315eec07abb18bb41be4d257aeb/atomac/AXClasses.py#L773-L778
[ "def", "_findAll", "(", "self", ",", "*", "*", "kwargs", ")", ":", "result", "=", "[", "]", "for", "item", "in", "self", ".", "_generateFind", "(", "*", "*", "kwargs", ")", ":", "result", ".", "append", "(", "item", ")", "return", "result" ]
3f46f6feb4504315eec07abb18bb41be4d257aeb
valid
BaseAXUIElement._findAllR
Return a list of all children (recursively) that match the specified criteria.
atomac/AXClasses.py
def _findAllR(self, **kwargs): """Return a list of all children (recursively) that match the specified criteria. """ result = [] for item in self._generateFindR(**kwargs): result.append(item) return result
def _findAllR(self, **kwargs): """Return a list of all children (recursively) that match the specified criteria. """ result = [] for item in self._generateFindR(**kwargs): result.append(item) return result
[ "Return", "a", "list", "of", "all", "children", "(", "recursively", ")", "that", "match", "the", "specified", "criteria", "." ]
alex-kostirin/pyatomac
python
https://github.com/alex-kostirin/pyatomac/blob/3f46f6feb4504315eec07abb18bb41be4d257aeb/atomac/AXClasses.py#L780-L787
[ "def", "_findAllR", "(", "self", ",", "*", "*", "kwargs", ")", ":", "result", "=", "[", "]", "for", "item", "in", "self", ".", "_generateFindR", "(", "*", "*", "kwargs", ")", ":", "result", ".", "append", "(", "item", ")", "return", "result" ]
3f46f6feb4504315eec07abb18bb41be4d257aeb
valid
BaseAXUIElement._getApplication
Get the base application UIElement. If the UIElement is a child of the application, it will try to get the AXParent until it reaches the top application level element.
atomac/AXClasses.py
def _getApplication(self): """Get the base application UIElement. If the UIElement is a child of the application, it will try to get the AXParent until it reaches the top application level element. """ app = self while True: try: app =...
def _getApplication(self): """Get the base application UIElement. If the UIElement is a child of the application, it will try to get the AXParent until it reaches the top application level element. """ app = self while True: try: app =...
[ "Get", "the", "base", "application", "UIElement", "." ]
alex-kostirin/pyatomac
python
https://github.com/alex-kostirin/pyatomac/blob/3f46f6feb4504315eec07abb18bb41be4d257aeb/atomac/AXClasses.py#L799-L812
[ "def", "_getApplication", "(", "self", ")", ":", "app", "=", "self", "while", "True", ":", "try", ":", "app", "=", "app", ".", "AXParent", "except", "_a11y", ".", "ErrorUnsupported", ":", "break", "return", "app" ]
3f46f6feb4504315eec07abb18bb41be4d257aeb
valid
BaseAXUIElement._menuItem
Return the specified menu item. Example - refer to items by name: app._menuItem(app.AXMenuBar, 'File', 'New').Press() app._menuItem(app.AXMenuBar, 'Edit', 'Insert', 'Line Break').Press() Refer to items by index: app._menuitem(app.AXMenuBar, 1, 0).Press() Refer to ite...
atomac/AXClasses.py
def _menuItem(self, menuitem, *args): """Return the specified menu item. Example - refer to items by name: app._menuItem(app.AXMenuBar, 'File', 'New').Press() app._menuItem(app.AXMenuBar, 'Edit', 'Insert', 'Line Break').Press() Refer to items by index: app._menuitem(a...
def _menuItem(self, menuitem, *args): """Return the specified menu item. Example - refer to items by name: app._menuItem(app.AXMenuBar, 'File', 'New').Press() app._menuItem(app.AXMenuBar, 'Edit', 'Insert', 'Line Break').Press() Refer to items by index: app._menuitem(a...
[ "Return", "the", "specified", "menu", "item", "." ]
alex-kostirin/pyatomac
python
https://github.com/alex-kostirin/pyatomac/blob/3f46f6feb4504315eec07abb18bb41be4d257aeb/atomac/AXClasses.py#L814-L843
[ "def", "_menuItem", "(", "self", ",", "menuitem", ",", "*", "args", ")", ":", "self", ".", "_activate", "(", ")", "for", "item", "in", "args", ":", "# If the item has an AXMenu as a child, navigate into it.", "# This seems like a silly abstraction added by apple's a11y ap...
3f46f6feb4504315eec07abb18bb41be4d257aeb
valid
BaseAXUIElement._activate
Activate the application (bringing menus and windows forward).
atomac/AXClasses.py
def _activate(self): """Activate the application (bringing menus and windows forward).""" ra = AppKit.NSRunningApplication app = ra.runningApplicationWithProcessIdentifier_( self._getPid()) # NSApplicationActivateAllWindows | NSApplicationActivateIgnoringOtherApps # =...
def _activate(self): """Activate the application (bringing menus and windows forward).""" ra = AppKit.NSRunningApplication app = ra.runningApplicationWithProcessIdentifier_( self._getPid()) # NSApplicationActivateAllWindows | NSApplicationActivateIgnoringOtherApps # =...
[ "Activate", "the", "application", "(", "bringing", "menus", "and", "windows", "forward", ")", "." ]
alex-kostirin/pyatomac
python
https://github.com/alex-kostirin/pyatomac/blob/3f46f6feb4504315eec07abb18bb41be4d257aeb/atomac/AXClasses.py#L845-L853
[ "def", "_activate", "(", "self", ")", ":", "ra", "=", "AppKit", ".", "NSRunningApplication", "app", "=", "ra", ".", "runningApplicationWithProcessIdentifier_", "(", "self", ".", "_getPid", "(", ")", ")", "# NSApplicationActivateAllWindows | NSApplicationActivateIgnoring...
3f46f6feb4504315eec07abb18bb41be4d257aeb
valid
BaseAXUIElement._getBundleId
Return the bundle ID of the application.
atomac/AXClasses.py
def _getBundleId(self): """Return the bundle ID of the application.""" ra = AppKit.NSRunningApplication app = ra.runningApplicationWithProcessIdentifier_( self._getPid()) return app.bundleIdentifier()
def _getBundleId(self): """Return the bundle ID of the application.""" ra = AppKit.NSRunningApplication app = ra.runningApplicationWithProcessIdentifier_( self._getPid()) return app.bundleIdentifier()
[ "Return", "the", "bundle", "ID", "of", "the", "application", "." ]
alex-kostirin/pyatomac
python
https://github.com/alex-kostirin/pyatomac/blob/3f46f6feb4504315eec07abb18bb41be4d257aeb/atomac/AXClasses.py#L855-L860
[ "def", "_getBundleId", "(", "self", ")", ":", "ra", "=", "AppKit", ".", "NSRunningApplication", "app", "=", "ra", ".", "runningApplicationWithProcessIdentifier_", "(", "self", ".", "_getPid", "(", ")", ")", "return", "app", ".", "bundleIdentifier", "(", ")" ]
3f46f6feb4504315eec07abb18bb41be4d257aeb
valid
NativeUIElement.menuItem
Return the specified menu item. Example - refer to items by name: app.menuItem('File', 'New').Press() app.menuItem('Edit', 'Insert', 'Line Break').Press() Refer to items by index: app.menuitem(1, 0).Press() Refer to items by mix-n-match: app.menuitem(1, 'Abo...
atomac/AXClasses.py
def menuItem(self, *args): """Return the specified menu item. Example - refer to items by name: app.menuItem('File', 'New').Press() app.menuItem('Edit', 'Insert', 'Line Break').Press() Refer to items by index: app.menuitem(1, 0).Press() Refer to items by mix-...
def menuItem(self, *args): """Return the specified menu item. Example - refer to items by name: app.menuItem('File', 'New').Press() app.menuItem('Edit', 'Insert', 'Line Break').Press() Refer to items by index: app.menuitem(1, 0).Press() Refer to items by mix-...
[ "Return", "the", "specified", "menu", "item", "." ]
alex-kostirin/pyatomac
python
https://github.com/alex-kostirin/pyatomac/blob/3f46f6feb4504315eec07abb18bb41be4d257aeb/atomac/AXClasses.py#L991-L1008
[ "def", "menuItem", "(", "self", ",", "*", "args", ")", ":", "menuitem", "=", "self", ".", "_getApplication", "(", ")", ".", "AXMenuBar", "return", "self", ".", "_menuItem", "(", "menuitem", ",", "*", "args", ")" ]
3f46f6feb4504315eec07abb18bb41be4d257aeb
valid
NativeUIElement.popUpItem
Return the specified item in a pop up menu.
atomac/AXClasses.py
def popUpItem(self, *args): """Return the specified item in a pop up menu.""" self.Press() time.sleep(.5) return self._menuItem(self, *args)
def popUpItem(self, *args): """Return the specified item in a pop up menu.""" self.Press() time.sleep(.5) return self._menuItem(self, *args)
[ "Return", "the", "specified", "item", "in", "a", "pop", "up", "menu", "." ]
alex-kostirin/pyatomac
python
https://github.com/alex-kostirin/pyatomac/blob/3f46f6feb4504315eec07abb18bb41be4d257aeb/atomac/AXClasses.py#L1010-L1014
[ "def", "popUpItem", "(", "self", ",", "*", "args", ")", ":", "self", ".", "Press", "(", ")", "time", ".", "sleep", "(", ".5", ")", "return", "self", ".", "_menuItem", "(", "self", ",", "*", "args", ")" ]
3f46f6feb4504315eec07abb18bb41be4d257aeb
valid
NativeUIElement.dragMouseButtonLeft
Drag the left mouse button without modifiers pressed. Parameters: coordinates to click on screen (tuple (x, y)) dest coordinates to drag to (tuple (x, y)) interval to send event of btn down, drag and up Returns: None
atomac/AXClasses.py
def dragMouseButtonLeft(self, coord, dest_coord, interval=0.5): """Drag the left mouse button without modifiers pressed. Parameters: coordinates to click on screen (tuple (x, y)) dest coordinates to drag to (tuple (x, y)) interval to send event of btn down, drag ...
def dragMouseButtonLeft(self, coord, dest_coord, interval=0.5): """Drag the left mouse button without modifiers pressed. Parameters: coordinates to click on screen (tuple (x, y)) dest coordinates to drag to (tuple (x, y)) interval to send event of btn down, drag ...
[ "Drag", "the", "left", "mouse", "button", "without", "modifiers", "pressed", "." ]
alex-kostirin/pyatomac
python
https://github.com/alex-kostirin/pyatomac/blob/3f46f6feb4504315eec07abb18bb41be4d257aeb/atomac/AXClasses.py#L1066-L1078
[ "def", "dragMouseButtonLeft", "(", "self", ",", "coord", ",", "dest_coord", ",", "interval", "=", "0.5", ")", ":", "modFlags", "=", "0", "self", ".", "_queueMouseButton", "(", "coord", ",", "Quartz", ".", "kCGMouseButtonLeft", ",", "modFlags", ",", "dest_coo...
3f46f6feb4504315eec07abb18bb41be4d257aeb
valid
NativeUIElement.doubleClickDragMouseButtonLeft
Double-click and drag the left mouse button without modifiers pressed. Parameters: coordinates to double-click on screen (tuple (x, y)) dest coordinates to drag to (tuple (x, y)) interval to send event of btn down, drag and up Returns: None
atomac/AXClasses.py
def doubleClickDragMouseButtonLeft(self, coord, dest_coord, interval=0.5): """Double-click and drag the left mouse button without modifiers pressed. Parameters: coordinates to double-click on screen (tuple (x, y)) dest coordinates to drag to (tuple (x, y)) ...
def doubleClickDragMouseButtonLeft(self, coord, dest_coord, interval=0.5): """Double-click and drag the left mouse button without modifiers pressed. Parameters: coordinates to double-click on screen (tuple (x, y)) dest coordinates to drag to (tuple (x, y)) ...
[ "Double", "-", "click", "and", "drag", "the", "left", "mouse", "button", "without", "modifiers", "pressed", "." ]
alex-kostirin/pyatomac
python
https://github.com/alex-kostirin/pyatomac/blob/3f46f6feb4504315eec07abb18bb41be4d257aeb/atomac/AXClasses.py#L1080-L1095
[ "def", "doubleClickDragMouseButtonLeft", "(", "self", ",", "coord", ",", "dest_coord", ",", "interval", "=", "0.5", ")", ":", "modFlags", "=", "0", "self", ".", "_queueMouseButton", "(", "coord", ",", "Quartz", ".", "kCGMouseButtonLeft", ",", "modFlags", ",", ...
3f46f6feb4504315eec07abb18bb41be4d257aeb
valid
NativeUIElement.clickMouseButtonLeft
Click the left mouse button without modifiers pressed. Parameters: coordinates to click on screen (tuple (x, y)) Returns: None
atomac/AXClasses.py
def clickMouseButtonLeft(self, coord, interval=None): """Click the left mouse button without modifiers pressed. Parameters: coordinates to click on screen (tuple (x, y)) Returns: None """ modFlags = 0 self._queueMouseButton(coord, Quartz.kCGMouseButtonLeft, modFlags) ...
def clickMouseButtonLeft(self, coord, interval=None): """Click the left mouse button without modifiers pressed. Parameters: coordinates to click on screen (tuple (x, y)) Returns: None """ modFlags = 0 self._queueMouseButton(coord, Quartz.kCGMouseButtonLeft, modFlags) ...
[ "Click", "the", "left", "mouse", "button", "without", "modifiers", "pressed", "." ]
alex-kostirin/pyatomac
python
https://github.com/alex-kostirin/pyatomac/blob/3f46f6feb4504315eec07abb18bb41be4d257aeb/atomac/AXClasses.py#L1097-L1109
[ "def", "clickMouseButtonLeft", "(", "self", ",", "coord", ",", "interval", "=", "None", ")", ":", "modFlags", "=", "0", "self", ".", "_queueMouseButton", "(", "coord", ",", "Quartz", ".", "kCGMouseButtonLeft", ",", "modFlags", ")", "if", "interval", ":", "...
3f46f6feb4504315eec07abb18bb41be4d257aeb
valid
NativeUIElement.clickMouseButtonRight
Click the right mouse button without modifiers pressed. Parameters: coordinates to click on scren (tuple (x, y)) Returns: None
atomac/AXClasses.py
def clickMouseButtonRight(self, coord): """Click the right mouse button without modifiers pressed. Parameters: coordinates to click on scren (tuple (x, y)) Returns: None """ modFlags = 0 self._queueMouseButton(coord, Quartz.kCGMouseButtonRight, modFlags) self._po...
def clickMouseButtonRight(self, coord): """Click the right mouse button without modifiers pressed. Parameters: coordinates to click on scren (tuple (x, y)) Returns: None """ modFlags = 0 self._queueMouseButton(coord, Quartz.kCGMouseButtonRight, modFlags) self._po...
[ "Click", "the", "right", "mouse", "button", "without", "modifiers", "pressed", "." ]
alex-kostirin/pyatomac
python
https://github.com/alex-kostirin/pyatomac/blob/3f46f6feb4504315eec07abb18bb41be4d257aeb/atomac/AXClasses.py#L1111-L1119
[ "def", "clickMouseButtonRight", "(", "self", ",", "coord", ")", ":", "modFlags", "=", "0", "self", ".", "_queueMouseButton", "(", "coord", ",", "Quartz", ".", "kCGMouseButtonRight", ",", "modFlags", ")", "self", ".", "_postQueuedEvents", "(", ")" ]
3f46f6feb4504315eec07abb18bb41be4d257aeb
valid
NativeUIElement.clickMouseButtonLeftWithMods
Click the left mouse button with modifiers pressed. Parameters: coordinates to click; modifiers (list) (e.g. [SHIFT] or [COMMAND, SHIFT] (assuming you've first used from pyatom.AXKeyCodeConstants import *)) Returns: None
atomac/AXClasses.py
def clickMouseButtonLeftWithMods(self, coord, modifiers, interval=None): """Click the left mouse button with modifiers pressed. Parameters: coordinates to click; modifiers (list) (e.g. [SHIFT] or [COMMAND, SHIFT] (assuming you've first used from pyatom.AXKeyCodeC...
def clickMouseButtonLeftWithMods(self, coord, modifiers, interval=None): """Click the left mouse button with modifiers pressed. Parameters: coordinates to click; modifiers (list) (e.g. [SHIFT] or [COMMAND, SHIFT] (assuming you've first used from pyatom.AXKeyCodeC...
[ "Click", "the", "left", "mouse", "button", "with", "modifiers", "pressed", "." ]
alex-kostirin/pyatomac
python
https://github.com/alex-kostirin/pyatomac/blob/3f46f6feb4504315eec07abb18bb41be4d257aeb/atomac/AXClasses.py#L1121-L1135
[ "def", "clickMouseButtonLeftWithMods", "(", "self", ",", "coord", ",", "modifiers", ",", "interval", "=", "None", ")", ":", "modFlags", "=", "self", ".", "_pressModifiers", "(", "modifiers", ")", "self", ".", "_queueMouseButton", "(", "coord", ",", "Quartz", ...
3f46f6feb4504315eec07abb18bb41be4d257aeb
valid
NativeUIElement.clickMouseButtonRightWithMods
Click the right mouse button with modifiers pressed. Parameters: coordinates to click; modifiers (list) Returns: None
atomac/AXClasses.py
def clickMouseButtonRightWithMods(self, coord, modifiers): """Click the right mouse button with modifiers pressed. Parameters: coordinates to click; modifiers (list) Returns: None """ modFlags = self._pressModifiers(modifiers) self._queueMouseButton(coord, Quartz.kCGMous...
def clickMouseButtonRightWithMods(self, coord, modifiers): """Click the right mouse button with modifiers pressed. Parameters: coordinates to click; modifiers (list) Returns: None """ modFlags = self._pressModifiers(modifiers) self._queueMouseButton(coord, Quartz.kCGMous...
[ "Click", "the", "right", "mouse", "button", "with", "modifiers", "pressed", "." ]
alex-kostirin/pyatomac
python
https://github.com/alex-kostirin/pyatomac/blob/3f46f6feb4504315eec07abb18bb41be4d257aeb/atomac/AXClasses.py#L1137-L1146
[ "def", "clickMouseButtonRightWithMods", "(", "self", ",", "coord", ",", "modifiers", ")", ":", "modFlags", "=", "self", ".", "_pressModifiers", "(", "modifiers", ")", "self", ".", "_queueMouseButton", "(", "coord", ",", "Quartz", ".", "kCGMouseButtonRight", ",",...
3f46f6feb4504315eec07abb18bb41be4d257aeb
valid
NativeUIElement.leftMouseDragged
Click the left mouse button and drag object. Parameters: stopCoord, the position of dragging stopped strCoord, the position of dragging started (0,0) will get current position speed is mouse moving speed, 0 to unlimited Returns: None
atomac/AXClasses.py
def leftMouseDragged(self, stopCoord, strCoord=(0, 0), speed=1): """Click the left mouse button and drag object. Parameters: stopCoord, the position of dragging stopped strCoord, the position of dragging started (0,0) will get current position ...
def leftMouseDragged(self, stopCoord, strCoord=(0, 0), speed=1): """Click the left mouse button and drag object. Parameters: stopCoord, the position of dragging stopped strCoord, the position of dragging started (0,0) will get current position ...
[ "Click", "the", "left", "mouse", "button", "and", "drag", "object", "." ]
alex-kostirin/pyatomac
python
https://github.com/alex-kostirin/pyatomac/blob/3f46f6feb4504315eec07abb18bb41be4d257aeb/atomac/AXClasses.py#L1148-L1157
[ "def", "leftMouseDragged", "(", "self", ",", "stopCoord", ",", "strCoord", "=", "(", "0", ",", "0", ")", ",", "speed", "=", "1", ")", ":", "self", ".", "_leftMouseDragged", "(", "stopCoord", ",", "strCoord", ",", "speed", ")" ]
3f46f6feb4504315eec07abb18bb41be4d257aeb
valid
NativeUIElement.doubleClickMouse
Double-click primary mouse button. Parameters: coordinates to click (assume primary is left button) Returns: None
atomac/AXClasses.py
def doubleClickMouse(self, coord): """Double-click primary mouse button. Parameters: coordinates to click (assume primary is left button) Returns: None """ modFlags = 0 self._queueMouseButton(coord, Quartz.kCGMouseButtonLeft, modFlags) # This is a kludge: ...
def doubleClickMouse(self, coord): """Double-click primary mouse button. Parameters: coordinates to click (assume primary is left button) Returns: None """ modFlags = 0 self._queueMouseButton(coord, Quartz.kCGMouseButtonLeft, modFlags) # This is a kludge: ...
[ "Double", "-", "click", "primary", "mouse", "button", "." ]
alex-kostirin/pyatomac
python
https://github.com/alex-kostirin/pyatomac/blob/3f46f6feb4504315eec07abb18bb41be4d257aeb/atomac/AXClasses.py#L1159-L1175
[ "def", "doubleClickMouse", "(", "self", ",", "coord", ")", ":", "modFlags", "=", "0", "self", ".", "_queueMouseButton", "(", "coord", ",", "Quartz", ".", "kCGMouseButtonLeft", ",", "modFlags", ")", "# This is a kludge:", "# If directed towards a Fusion VM the clickCou...
3f46f6feb4504315eec07abb18bb41be4d257aeb
valid
NativeUIElement.doubleMouseButtonLeftWithMods
Click the left mouse button with modifiers pressed. Parameters: coordinates to click; modifiers (list) Returns: None
atomac/AXClasses.py
def doubleMouseButtonLeftWithMods(self, coord, modifiers): """Click the left mouse button with modifiers pressed. Parameters: coordinates to click; modifiers (list) Returns: None """ modFlags = self._pressModifiers(modifiers) self._queueMouseButton(coord, Quartz.kCGMouse...
def doubleMouseButtonLeftWithMods(self, coord, modifiers): """Click the left mouse button with modifiers pressed. Parameters: coordinates to click; modifiers (list) Returns: None """ modFlags = self._pressModifiers(modifiers) self._queueMouseButton(coord, Quartz.kCGMouse...
[ "Click", "the", "left", "mouse", "button", "with", "modifiers", "pressed", "." ]
alex-kostirin/pyatomac
python
https://github.com/alex-kostirin/pyatomac/blob/3f46f6feb4504315eec07abb18bb41be4d257aeb/atomac/AXClasses.py#L1177-L1188
[ "def", "doubleMouseButtonLeftWithMods", "(", "self", ",", "coord", ",", "modifiers", ")", ":", "modFlags", "=", "self", ".", "_pressModifiers", "(", "modifiers", ")", "self", ".", "_queueMouseButton", "(", "coord", ",", "Quartz", ".", "kCGMouseButtonLeft", ",", ...
3f46f6feb4504315eec07abb18bb41be4d257aeb
valid
NativeUIElement.tripleClickMouse
Triple-click primary mouse button. Parameters: coordinates to click (assume primary is left button) Returns: None
atomac/AXClasses.py
def tripleClickMouse(self, coord): """Triple-click primary mouse button. Parameters: coordinates to click (assume primary is left button) Returns: None """ # Note above re: double-clicks applies to triple-clicks modFlags = 0 for i in range(2): self._q...
def tripleClickMouse(self, coord): """Triple-click primary mouse button. Parameters: coordinates to click (assume primary is left button) Returns: None """ # Note above re: double-clicks applies to triple-clicks modFlags = 0 for i in range(2): self._q...
[ "Triple", "-", "click", "primary", "mouse", "button", "." ]
alex-kostirin/pyatomac
python
https://github.com/alex-kostirin/pyatomac/blob/3f46f6feb4504315eec07abb18bb41be4d257aeb/atomac/AXClasses.py#L1190-L1202
[ "def", "tripleClickMouse", "(", "self", ",", "coord", ")", ":", "# Note above re: double-clicks applies to triple-clicks", "modFlags", "=", "0", "for", "i", "in", "range", "(", "2", ")", ":", "self", ".", "_queueMouseButton", "(", "coord", ",", "Quartz", ".", ...
3f46f6feb4504315eec07abb18bb41be4d257aeb
valid
NativeUIElement.waitFor
Generic wait for a UI event that matches the specified criteria to occur. For customization of the callback, use keyword args labeled 'callback', 'args', and 'kwargs' for the callback fn, callback args, and callback kwargs, respectively. Also note that on return, the observer-r...
atomac/AXClasses.py
def waitFor(self, timeout, notification, **kwargs): """Generic wait for a UI event that matches the specified criteria to occur. For customization of the callback, use keyword args labeled 'callback', 'args', and 'kwargs' for the callback fn, callback args, and callback kwargs, ...
def waitFor(self, timeout, notification, **kwargs): """Generic wait for a UI event that matches the specified criteria to occur. For customization of the callback, use keyword args labeled 'callback', 'args', and 'kwargs' for the callback fn, callback args, and callback kwargs, ...
[ "Generic", "wait", "for", "a", "UI", "event", "that", "matches", "the", "specified", "criteria", "to", "occur", "." ]
alex-kostirin/pyatomac
python
https://github.com/alex-kostirin/pyatomac/blob/3f46f6feb4504315eec07abb18bb41be4d257aeb/atomac/AXClasses.py#L1204-L1216
[ "def", "waitFor", "(", "self", ",", "timeout", ",", "notification", ",", "*", "*", "kwargs", ")", ":", "return", "self", ".", "_waitFor", "(", "timeout", ",", "notification", ",", "*", "*", "kwargs", ")" ]
3f46f6feb4504315eec07abb18bb41be4d257aeb
valid
NativeUIElement.waitForCreation
Convenience method to wait for creation of some UI element. Returns: The element created
atomac/AXClasses.py
def waitForCreation(self, timeout=10, notification='AXCreated'): """Convenience method to wait for creation of some UI element. Returns: The element created """ callback = AXCallbacks.returnElemCallback retelem = None args = (retelem,) return self.waitFor(timeou...
def waitForCreation(self, timeout=10, notification='AXCreated'): """Convenience method to wait for creation of some UI element. Returns: The element created """ callback = AXCallbacks.returnElemCallback retelem = None args = (retelem,) return self.waitFor(timeou...
[ "Convenience", "method", "to", "wait", "for", "creation", "of", "some", "UI", "element", "." ]
alex-kostirin/pyatomac
python
https://github.com/alex-kostirin/pyatomac/blob/3f46f6feb4504315eec07abb18bb41be4d257aeb/atomac/AXClasses.py#L1218-L1228
[ "def", "waitForCreation", "(", "self", ",", "timeout", "=", "10", ",", "notification", "=", "'AXCreated'", ")", ":", "callback", "=", "AXCallbacks", ".", "returnElemCallback", "retelem", "=", "None", "args", "=", "(", "retelem", ",", ")", "return", "self", ...
3f46f6feb4504315eec07abb18bb41be4d257aeb
valid
NativeUIElement.waitForWindowToDisappear
Convenience method to wait for a window with the given name to disappear. Returns: Boolean
atomac/AXClasses.py
def waitForWindowToDisappear(self, winName, timeout=10): """Convenience method to wait for a window with the given name to disappear. Returns: Boolean """ callback = AXCallbacks.elemDisappearedCallback retelem = None args = (retelem, self) # For some rea...
def waitForWindowToDisappear(self, winName, timeout=10): """Convenience method to wait for a window with the given name to disappear. Returns: Boolean """ callback = AXCallbacks.elemDisappearedCallback retelem = None args = (retelem, self) # For some rea...
[ "Convenience", "method", "to", "wait", "for", "a", "window", "with", "the", "given", "name", "to", "disappear", "." ]
alex-kostirin/pyatomac
python
https://github.com/alex-kostirin/pyatomac/blob/3f46f6feb4504315eec07abb18bb41be4d257aeb/atomac/AXClasses.py#L1238-L1253
[ "def", "waitForWindowToDisappear", "(", "self", ",", "winName", ",", "timeout", "=", "10", ")", ":", "callback", "=", "AXCallbacks", ".", "elemDisappearedCallback", "retelem", "=", "None", "args", "=", "(", "retelem", ",", "self", ")", "# For some reason for the...
3f46f6feb4504315eec07abb18bb41be4d257aeb
valid
NativeUIElement.waitForValueToChange
Convenience method to wait for value attribute of given element to change. Some types of elements (e.g. menu items) have their titles change, so this will not work for those. This seems to work best if you set the notification at the application level. Returns: Element or None
atomac/AXClasses.py
def waitForValueToChange(self, timeout=10): """Convenience method to wait for value attribute of given element to change. Some types of elements (e.g. menu items) have their titles change, so this will not work for those. This seems to work best if you set the notification at t...
def waitForValueToChange(self, timeout=10): """Convenience method to wait for value attribute of given element to change. Some types of elements (e.g. menu items) have their titles change, so this will not work for those. This seems to work best if you set the notification at t...
[ "Convenience", "method", "to", "wait", "for", "value", "attribute", "of", "given", "element", "to", "change", "." ]
alex-kostirin/pyatomac
python
https://github.com/alex-kostirin/pyatomac/blob/3f46f6feb4504315eec07abb18bb41be4d257aeb/atomac/AXClasses.py#L1262-L1279
[ "def", "waitForValueToChange", "(", "self", ",", "timeout", "=", "10", ")", ":", "# Want to identify that the element whose value changes matches this", "# object's. Unique identifiers considered include role and position", "# This seems to work best if you set the notification at the appli...
3f46f6feb4504315eec07abb18bb41be4d257aeb
valid
NativeUIElement.waitForFocusToChange
Convenience method to wait for focused element to change (to new element given). Returns: Boolean
atomac/AXClasses.py
def waitForFocusToChange(self, newFocusedElem, timeout=10): """Convenience method to wait for focused element to change (to new element given). Returns: Boolean """ return self.waitFor(timeout, 'AXFocusedUIElementChanged', AXRole=newFocusedElem.AXRole...
def waitForFocusToChange(self, newFocusedElem, timeout=10): """Convenience method to wait for focused element to change (to new element given). Returns: Boolean """ return self.waitFor(timeout, 'AXFocusedUIElementChanged', AXRole=newFocusedElem.AXRole...
[ "Convenience", "method", "to", "wait", "for", "focused", "element", "to", "change", "(", "to", "new", "element", "given", ")", "." ]
alex-kostirin/pyatomac
python
https://github.com/alex-kostirin/pyatomac/blob/3f46f6feb4504315eec07abb18bb41be4d257aeb/atomac/AXClasses.py#L1281-L1289
[ "def", "waitForFocusToChange", "(", "self", ",", "newFocusedElem", ",", "timeout", "=", "10", ")", ":", "return", "self", ".", "waitFor", "(", "timeout", ",", "'AXFocusedUIElementChanged'", ",", "AXRole", "=", "newFocusedElem", ".", "AXRole", ",", "AXPosition", ...
3f46f6feb4504315eec07abb18bb41be4d257aeb
valid
NativeUIElement.waitForFocusedWindowToChange
Convenience method to wait for focused window to change Returns: Boolean
atomac/AXClasses.py
def waitForFocusedWindowToChange(self, nextWinName, timeout=10): """Convenience method to wait for focused window to change Returns: Boolean """ callback = AXCallbacks.returnElemCallback retelem = None return self.waitFor(timeout, 'AXFocusedWindowChanged', ...
def waitForFocusedWindowToChange(self, nextWinName, timeout=10): """Convenience method to wait for focused window to change Returns: Boolean """ callback = AXCallbacks.returnElemCallback retelem = None return self.waitFor(timeout, 'AXFocusedWindowChanged', ...
[ "Convenience", "method", "to", "wait", "for", "focused", "window", "to", "change" ]
alex-kostirin/pyatomac
python
https://github.com/alex-kostirin/pyatomac/blob/3f46f6feb4504315eec07abb18bb41be4d257aeb/atomac/AXClasses.py#L1291-L1299
[ "def", "waitForFocusedWindowToChange", "(", "self", ",", "nextWinName", ",", "timeout", "=", "10", ")", ":", "callback", "=", "AXCallbacks", ".", "returnElemCallback", "retelem", "=", "None", "return", "self", ".", "waitFor", "(", "timeout", ",", "'AXFocusedWind...
3f46f6feb4504315eec07abb18bb41be4d257aeb
valid
NativeUIElement._convenienceMatch
Method used by role based convenience functions to find a match
atomac/AXClasses.py
def _convenienceMatch(self, role, attr, match): """Method used by role based convenience functions to find a match""" kwargs = {} # If the user supplied some text to search for, # supply that in the kwargs if match: kwargs[attr] = match return self.findAll(AXR...
def _convenienceMatch(self, role, attr, match): """Method used by role based convenience functions to find a match""" kwargs = {} # If the user supplied some text to search for, # supply that in the kwargs if match: kwargs[attr] = match return self.findAll(AXR...
[ "Method", "used", "by", "role", "based", "convenience", "functions", "to", "find", "a", "match" ]
alex-kostirin/pyatomac
python
https://github.com/alex-kostirin/pyatomac/blob/3f46f6feb4504315eec07abb18bb41be4d257aeb/atomac/AXClasses.py#L1301-L1308
[ "def", "_convenienceMatch", "(", "self", ",", "role", ",", "attr", ",", "match", ")", ":", "kwargs", "=", "{", "}", "# If the user supplied some text to search for,", "# supply that in the kwargs", "if", "match", ":", "kwargs", "[", "attr", "]", "=", "match", "r...
3f46f6feb4504315eec07abb18bb41be4d257aeb
valid
NativeUIElement._convenienceMatchR
Method used by role based convenience functions to find a match
atomac/AXClasses.py
def _convenienceMatchR(self, role, attr, match): """Method used by role based convenience functions to find a match""" kwargs = {} # If the user supplied some text to search for, # supply that in the kwargs if match: kwargs[attr] = match return self.findAllR(A...
def _convenienceMatchR(self, role, attr, match): """Method used by role based convenience functions to find a match""" kwargs = {} # If the user supplied some text to search for, # supply that in the kwargs if match: kwargs[attr] = match return self.findAllR(A...
[ "Method", "used", "by", "role", "based", "convenience", "functions", "to", "find", "a", "match" ]
alex-kostirin/pyatomac
python
https://github.com/alex-kostirin/pyatomac/blob/3f46f6feb4504315eec07abb18bb41be4d257aeb/atomac/AXClasses.py#L1310-L1317
[ "def", "_convenienceMatchR", "(", "self", ",", "role", ",", "attr", ",", "match", ")", ":", "kwargs", "=", "{", "}", "# If the user supplied some text to search for,", "# supply that in the kwargs", "if", "match", ":", "kwargs", "[", "attr", "]", "=", "match", "...
3f46f6feb4504315eec07abb18bb41be4d257aeb
valid
Generic.imagecapture
Captures screenshot of the whole desktop or given window @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param x: x co-ordinate value @type x: int @param y: y co-ordinate value ...
atomac/ldtpd/generic.py
def imagecapture(self, window_name=None, x=0, y=0, width=None, height=None): """ Captures screenshot of the whole desktop or given window @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type win...
def imagecapture(self, window_name=None, x=0, y=0, width=None, height=None): """ Captures screenshot of the whole desktop or given window @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type win...
[ "Captures", "screenshot", "of", "the", "whole", "desktop", "or", "given", "window", "@param", "window_name", ":", "Window", "name", "to", "look", "for", "either", "full", "name", "LDTP", "s", "name", "convention", "or", "a", "Unix", "glob", ".", "@type", "...
alex-kostirin/pyatomac
python
https://github.com/alex-kostirin/pyatomac/blob/3f46f6feb4504315eec07abb18bb41be4d257aeb/atomac/ldtpd/generic.py#L43-L83
[ "def", "imagecapture", "(", "self", ",", "window_name", "=", "None", ",", "x", "=", "0", ",", "y", "=", "0", ",", "width", "=", "None", ",", "height", "=", "None", ")", ":", "if", "x", "or", "y", "or", "(", "width", "and", "width", "!=", "-", ...
3f46f6feb4504315eec07abb18bb41be4d257aeb
valid
startlog
@param filename: Start logging on the specified file @type filename: string @param overwrite: Overwrite or append False - Append log to an existing file True - Write log to a new file. If file already exist, then erase existing file content and start log @type overwrite: boolean ...
atomac/ldtp/__init__.py
def startlog(filename, overwrite=True): """ @param filename: Start logging on the specified file @type filename: string @param overwrite: Overwrite or append False - Append log to an existing file True - Write log to a new file. If file already exist, then erase existing file co...
def startlog(filename, overwrite=True): """ @param filename: Start logging on the specified file @type filename: string @param overwrite: Overwrite or append False - Append log to an existing file True - Write log to a new file. If file already exist, then erase existing file co...
[ "@param", "filename", ":", "Start", "logging", "on", "the", "specified", "file", "@type", "filename", ":", "string", "@param", "overwrite", ":", "Overwrite", "or", "append", "False", "-", "Append", "log", "to", "an", "existing", "file", "True", "-", "Write",...
alex-kostirin/pyatomac
python
https://github.com/alex-kostirin/pyatomac/blob/3f46f6feb4504315eec07abb18bb41be4d257aeb/atomac/ldtp/__init__.py#L115-L152
[ "def", "startlog", "(", "filename", ",", "overwrite", "=", "True", ")", ":", "if", "not", "filename", ":", "return", "0", "if", "overwrite", ":", "# Create new file, by overwriting existing file", "_mode", "=", "'w'", "else", ":", "# Append existing file", "_mode"...
3f46f6feb4504315eec07abb18bb41be4d257aeb
valid
removecallback
Remove registered callback on window create @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @return: 1 if registration was successful, 0 if not. @rtype: integer
atomac/ldtp/__init__.py
def removecallback(window_name): """ Remove registered callback on window create @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @return: 1 if registration was successful, 0 if not. @rtype: integer """ ...
def removecallback(window_name): """ Remove registered callback on window create @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @return: 1 if registration was successful, 0 if not. @rtype: integer """ ...
[ "Remove", "registered", "callback", "on", "window", "create" ]
alex-kostirin/pyatomac
python
https://github.com/alex-kostirin/pyatomac/blob/3f46f6feb4504315eec07abb18bb41be4d257aeb/atomac/ldtp/__init__.py#L546-L560
[ "def", "removecallback", "(", "window_name", ")", ":", "if", "window_name", "in", "_pollEvents", ".", "_callback", ":", "del", "_pollEvents", ".", "_callback", "[", "window_name", "]", "return", "_remote_removecallback", "(", "window_name", ")" ]
3f46f6feb4504315eec07abb18bb41be4d257aeb
valid
callAfter
call a function on the main thread (async)
atomac/AppHelper.py
def callAfter(func, *args, **kwargs): """call a function on the main thread (async)""" pool = NSAutoreleasePool.alloc().init() obj = PyObjCAppHelperCaller_wrap.alloc().initWithArgs_((func, args, kwargs)) obj.callAfter_(None) del obj del pool
def callAfter(func, *args, **kwargs): """call a function on the main thread (async)""" pool = NSAutoreleasePool.alloc().init() obj = PyObjCAppHelperCaller_wrap.alloc().initWithArgs_((func, args, kwargs)) obj.callAfter_(None) del obj del pool
[ "call", "a", "function", "on", "the", "main", "thread", "(", "async", ")" ]
alex-kostirin/pyatomac
python
https://github.com/alex-kostirin/pyatomac/blob/3f46f6feb4504315eec07abb18bb41be4d257aeb/atomac/AppHelper.py#L45-L51
[ "def", "callAfter", "(", "func", ",", "*", "args", ",", "*", "*", "kwargs", ")", ":", "pool", "=", "NSAutoreleasePool", ".", "alloc", "(", ")", ".", "init", "(", ")", "obj", "=", "PyObjCAppHelperCaller_wrap", ".", "alloc", "(", ")", ".", "initWithArgs_...
3f46f6feb4504315eec07abb18bb41be4d257aeb
valid
callLater
call a function on the main thread after a delay (async)
atomac/AppHelper.py
def callLater(delay, func, *args, **kwargs): """call a function on the main thread after a delay (async)""" pool = NSAutoreleasePool.alloc().init() obj = PyObjCAppHelperCaller_wrap.alloc().initWithArgs_((func, args, kwargs)) obj.callLater_(delay) del obj del pool
def callLater(delay, func, *args, **kwargs): """call a function on the main thread after a delay (async)""" pool = NSAutoreleasePool.alloc().init() obj = PyObjCAppHelperCaller_wrap.alloc().initWithArgs_((func, args, kwargs)) obj.callLater_(delay) del obj del pool
[ "call", "a", "function", "on", "the", "main", "thread", "after", "a", "delay", "(", "async", ")" ]
alex-kostirin/pyatomac
python
https://github.com/alex-kostirin/pyatomac/blob/3f46f6feb4504315eec07abb18bb41be4d257aeb/atomac/AppHelper.py#L54-L60
[ "def", "callLater", "(", "delay", ",", "func", ",", "*", "args", ",", "*", "*", "kwargs", ")", ":", "pool", "=", "NSAutoreleasePool", ".", "alloc", "(", ")", ".", "init", "(", ")", "obj", "=", "PyObjCAppHelperCaller_wrap", ".", "alloc", "(", ")", "."...
3f46f6feb4504315eec07abb18bb41be4d257aeb
valid
stopEventLoop
Stop the current event loop if possible returns True if it expects that it was successful, False otherwise
atomac/AppHelper.py
def stopEventLoop(): """ Stop the current event loop if possible returns True if it expects that it was successful, False otherwise """ stopper = PyObjCAppHelperRunLoopStopper_wrap.currentRunLoopStopper() if stopper is None: if NSApp() is not None: NSApp().terminate_(None) ...
def stopEventLoop(): """ Stop the current event loop if possible returns True if it expects that it was successful, False otherwise """ stopper = PyObjCAppHelperRunLoopStopper_wrap.currentRunLoopStopper() if stopper is None: if NSApp() is not None: NSApp().terminate_(None) ...
[ "Stop", "the", "current", "event", "loop", "if", "possible", "returns", "True", "if", "it", "expects", "that", "it", "was", "successful", "False", "otherwise" ]
alex-kostirin/pyatomac
python
https://github.com/alex-kostirin/pyatomac/blob/3f46f6feb4504315eec07abb18bb41be4d257aeb/atomac/AppHelper.py#L110-L127
[ "def", "stopEventLoop", "(", ")", ":", "stopper", "=", "PyObjCAppHelperRunLoopStopper_wrap", ".", "currentRunLoopStopper", "(", ")", "if", "stopper", "is", "None", ":", "if", "NSApp", "(", ")", "is", "not", "None", ":", "NSApp", "(", ")", ".", "terminate_", ...
3f46f6feb4504315eec07abb18bb41be4d257aeb
valid
runEventLoop
Run the event loop, ask the user if we should continue if an exception is caught. Use this function instead of NSApplicationMain().
atomac/AppHelper.py
def runEventLoop(argv=None, unexpectedErrorAlert=None, installInterrupt=None, pdb=None, main=NSApplicationMain): """Run the event loop, ask the user if we should continue if an exception is caught. Use this function instead of NSApplicationMain(). """ if argv is None: argv = sys.argv if pdb...
def runEventLoop(argv=None, unexpectedErrorAlert=None, installInterrupt=None, pdb=None, main=NSApplicationMain): """Run the event loop, ask the user if we should continue if an exception is caught. Use this function instead of NSApplicationMain(). """ if argv is None: argv = sys.argv if pdb...
[ "Run", "the", "event", "loop", "ask", "the", "user", "if", "we", "should", "continue", "if", "an", "exception", "is", "caught", ".", "Use", "this", "function", "instead", "of", "NSApplicationMain", "()", "." ]
alex-kostirin/pyatomac
python
https://github.com/alex-kostirin/pyatomac/blob/3f46f6feb4504315eec07abb18bb41be4d257aeb/atomac/AppHelper.py#L189-L257
[ "def", "runEventLoop", "(", "argv", "=", "None", ",", "unexpectedErrorAlert", "=", "None", ",", "installInterrupt", "=", "None", ",", "pdb", "=", "None", ",", "main", "=", "NSApplicationMain", ")", ":", "if", "argv", "is", "None", ":", "argv", "=", "sys"...
3f46f6feb4504315eec07abb18bb41be4d257aeb
valid
Text.keypress
Press key. NOTE: keyrelease should be called @param data: data to type. @type data: string @return: 1 on success. @rtype: integer
atomac/ldtpd/text.py
def keypress(self, data): """ Press key. NOTE: keyrelease should be called @param data: data to type. @type data: string @return: 1 on success. @rtype: integer """ try: window = self._get_front_most_window() except (IndexError,): ...
def keypress(self, data): """ Press key. NOTE: keyrelease should be called @param data: data to type. @type data: string @return: 1 on success. @rtype: integer """ try: window = self._get_front_most_window() except (IndexError,): ...
[ "Press", "key", ".", "NOTE", ":", "keyrelease", "should", "be", "called" ]
alex-kostirin/pyatomac
python
https://github.com/alex-kostirin/pyatomac/blob/3f46f6feb4504315eec07abb18bb41be4d257aeb/atomac/ldtpd/text.py#L47-L62
[ "def", "keypress", "(", "self", ",", "data", ")", ":", "try", ":", "window", "=", "self", ".", "_get_front_most_window", "(", ")", "except", "(", "IndexError", ",", ")", ":", "window", "=", "self", ".", "_get_any_window", "(", ")", "key_press_action", "=...
3f46f6feb4504315eec07abb18bb41be4d257aeb
valid
Text.keyrelease
Release key. NOTE: keypress should be called before this @param data: data to type. @type data: string @return: 1 on success. @rtype: integer
atomac/ldtpd/text.py
def keyrelease(self, data): """ Release key. NOTE: keypress should be called before this @param data: data to type. @type data: string @return: 1 on success. @rtype: integer """ try: window = self._get_front_most_window() except (Inde...
def keyrelease(self, data): """ Release key. NOTE: keypress should be called before this @param data: data to type. @type data: string @return: 1 on success. @rtype: integer """ try: window = self._get_front_most_window() except (Inde...
[ "Release", "key", ".", "NOTE", ":", "keypress", "should", "be", "called", "before", "this" ]
alex-kostirin/pyatomac
python
https://github.com/alex-kostirin/pyatomac/blob/3f46f6feb4504315eec07abb18bb41be4d257aeb/atomac/ldtpd/text.py#L64-L79
[ "def", "keyrelease", "(", "self", ",", "data", ")", ":", "try", ":", "window", "=", "self", ".", "_get_front_most_window", "(", ")", "except", "(", "IndexError", ",", ")", ":", "window", "=", "self", ".", "_get_any_window", "(", ")", "key_release_action", ...
3f46f6feb4504315eec07abb18bb41be4d257aeb
valid
Text.enterstring
Type string sequence. @param window_name: Window name to focus on, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to focus on, either full name, LDTP's name convention, or a Unix glob. @type ob...
atomac/ldtpd/text.py
def enterstring(self, window_name, object_name='', data=''): """ Type string sequence. @param window_name: Window name to focus on, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to focus on, ei...
def enterstring(self, window_name, object_name='', data=''): """ Type string sequence. @param window_name: Window name to focus on, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to focus on, ei...
[ "Type", "string", "sequence", ".", "@param", "window_name", ":", "Window", "name", "to", "focus", "on", "either", "full", "name", "LDTP", "s", "name", "convention", "or", "a", "Unix", "glob", ".", "@type", "window_name", ":", "string", "@param", "object_name...
alex-kostirin/pyatomac
python
https://github.com/alex-kostirin/pyatomac/blob/3f46f6feb4504315eec07abb18bb41be4d257aeb/atomac/ldtpd/text.py#L81-L105
[ "def", "enterstring", "(", "self", ",", "window_name", ",", "object_name", "=", "''", ",", "data", "=", "''", ")", ":", "if", "not", "object_name", "and", "not", "data", ":", "return", "self", ".", "generatekeyevent", "(", "window_name", ")", "else", ":"...
3f46f6feb4504315eec07abb18bb41be4d257aeb
valid
Text.gettextvalue
Get text value @param window_name: Window name to type in, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to type in, either full name, LDTP's name convention, or a Unix glob. @type object_name...
atomac/ldtpd/text.py
def gettextvalue(self, window_name, object_name, startPosition=0, endPosition=0): """ Get text value @param window_name: Window name to type in, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to...
def gettextvalue(self, window_name, object_name, startPosition=0, endPosition=0): """ Get text value @param window_name: Window name to type in, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to...
[ "Get", "text", "value", "@param", "window_name", ":", "Window", "name", "to", "type", "in", "either", "full", "name", "LDTP", "s", "name", "convention", "or", "a", "Unix", "glob", ".", "@type", "window_name", ":", "string", "@param", "object_name", ":", "O...
alex-kostirin/pyatomac
python
https://github.com/alex-kostirin/pyatomac/blob/3f46f6feb4504315eec07abb18bb41be4d257aeb/atomac/ldtpd/text.py#L129-L150
[ "def", "gettextvalue", "(", "self", ",", "window_name", ",", "object_name", ",", "startPosition", "=", "0", ",", "endPosition", "=", "0", ")", ":", "object_handle", "=", "self", ".", "_get_object_handle", "(", "window_name", ",", "object_name", ")", "if", "n...
3f46f6feb4504315eec07abb18bb41be4d257aeb
valid
Text.inserttext
Insert string sequence in given position. @param window_name: Window name to type in, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to type in, either full name, LDTP's name convention, or a Unix glob....
atomac/ldtpd/text.py
def inserttext(self, window_name, object_name, position, data): """ Insert string sequence in given position. @param window_name: Window name to type in, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Objec...
def inserttext(self, window_name, object_name, position, data): """ Insert string sequence in given position. @param window_name: Window name to type in, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Objec...
[ "Insert", "string", "sequence", "in", "given", "position", ".", "@param", "window_name", ":", "Window", "name", "to", "type", "in", "either", "full", "name", "LDTP", "s", "name", "convention", "or", "a", "Unix", "glob", ".", "@type", "window_name", ":", "s...
alex-kostirin/pyatomac
python
https://github.com/alex-kostirin/pyatomac/blob/3f46f6feb4504315eec07abb18bb41be4d257aeb/atomac/ldtpd/text.py#L152-L181
[ "def", "inserttext", "(", "self", ",", "window_name", ",", "object_name", ",", "position", ",", "data", ")", ":", "object_handle", "=", "self", ".", "_get_object_handle", "(", "window_name", ",", "object_name", ")", "if", "not", "object_handle", ".", "AXEnable...
3f46f6feb4504315eec07abb18bb41be4d257aeb
valid
Text.verifypartialmatch
Verify partial text @param window_name: Window name to type in, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to type in, either full name, LDTP's name convention, or a Unix glob. @type object...
atomac/ldtpd/text.py
def verifypartialmatch(self, window_name, object_name, partial_text): """ Verify partial text @param window_name: Window name to type in, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to type i...
def verifypartialmatch(self, window_name, object_name, partial_text): """ Verify partial text @param window_name: Window name to type in, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to type i...
[ "Verify", "partial", "text", "@param", "window_name", ":", "Window", "name", "to", "type", "in", "either", "full", "name", "LDTP", "s", "name", "convention", "or", "a", "Unix", "glob", ".", "@type", "window_name", ":", "string", "@param", "object_name", ":",...
alex-kostirin/pyatomac
python
https://github.com/alex-kostirin/pyatomac/blob/3f46f6feb4504315eec07abb18bb41be4d257aeb/atomac/ldtpd/text.py#L183-L206
[ "def", "verifypartialmatch", "(", "self", ",", "window_name", ",", "object_name", ",", "partial_text", ")", ":", "try", ":", "if", "re", ".", "search", "(", "fnmatch", ".", "translate", "(", "partial_text", ")", ",", "self", ".", "gettextvalue", "(", "wind...
3f46f6feb4504315eec07abb18bb41be4d257aeb
valid
Text.verifysettext
Verify text is set correctly @param window_name: Window name to type in, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to type in, either full name, LDTP's name convention, or a Unix glob. @ty...
atomac/ldtpd/text.py
def verifysettext(self, window_name, object_name, text): """ Verify text is set correctly @param window_name: Window name to type in, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to type in, e...
def verifysettext(self, window_name, object_name, text): """ Verify text is set correctly @param window_name: Window name to type in, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to type in, e...
[ "Verify", "text", "is", "set", "correctly", "@param", "window_name", ":", "Window", "name", "to", "type", "in", "either", "full", "name", "LDTP", "s", "name", "convention", "or", "a", "Unix", "glob", ".", "@type", "window_name", ":", "string", "@param", "o...
alex-kostirin/pyatomac
python
https://github.com/alex-kostirin/pyatomac/blob/3f46f6feb4504315eec07abb18bb41be4d257aeb/atomac/ldtpd/text.py#L208-L229
[ "def", "verifysettext", "(", "self", ",", "window_name", ",", "object_name", ",", "text", ")", ":", "try", ":", "return", "int", "(", "re", ".", "match", "(", "fnmatch", ".", "translate", "(", "text", ")", ",", "self", ".", "gettextvalue", "(", "window...
3f46f6feb4504315eec07abb18bb41be4d257aeb
valid
Text.istextstateenabled
Verifies text state enabled or not @param window_name: Window name to type in, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to type in, either full name, LDTP's name convention, or a Unix glob. ...
atomac/ldtpd/text.py
def istextstateenabled(self, window_name, object_name): """ Verifies text state enabled or not @param window_name: Window name to type in, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to type ...
def istextstateenabled(self, window_name, object_name): """ Verifies text state enabled or not @param window_name: Window name to type in, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to type ...
[ "Verifies", "text", "state", "enabled", "or", "not", "@param", "window_name", ":", "Window", "name", "to", "type", "in", "either", "full", "name", "LDTP", "s", "name", "convention", "or", "a", "Unix", "glob", ".", "@type", "window_name", ":", "string", "@p...
alex-kostirin/pyatomac
python
https://github.com/alex-kostirin/pyatomac/blob/3f46f6feb4504315eec07abb18bb41be4d257aeb/atomac/ldtpd/text.py#L231-L251
[ "def", "istextstateenabled", "(", "self", ",", "window_name", ",", "object_name", ")", ":", "try", ":", "object_handle", "=", "self", ".", "_get_object_handle", "(", "window_name", ",", "object_name", ")", "if", "object_handle", ".", "AXEnabled", ":", "return", ...
3f46f6feb4504315eec07abb18bb41be4d257aeb
valid
Text.getcharcount
Get character count @param window_name: Window name to type in, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to type in, either full name, LDTP's name convention, or a Unix glob. @type object...
atomac/ldtpd/text.py
def getcharcount(self, window_name, object_name): """ Get character count @param window_name: Window name to type in, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to type in, either full name,...
def getcharcount(self, window_name, object_name): """ Get character count @param window_name: Window name to type in, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to type in, either full name,...
[ "Get", "character", "count", "@param", "window_name", ":", "Window", "name", "to", "type", "in", "either", "full", "name", "LDTP", "s", "name", "convention", "or", "a", "Unix", "glob", ".", "@type", "window_name", ":", "string", "@param", "object_name", ":",...
alex-kostirin/pyatomac
python
https://github.com/alex-kostirin/pyatomac/blob/3f46f6feb4504315eec07abb18bb41be4d257aeb/atomac/ldtpd/text.py#L253-L270
[ "def", "getcharcount", "(", "self", ",", "window_name", ",", "object_name", ")", ":", "object_handle", "=", "self", ".", "_get_object_handle", "(", "window_name", ",", "object_name", ")", "if", "not", "object_handle", ".", "AXEnabled", ":", "raise", "LdtpServerE...
3f46f6feb4504315eec07abb18bb41be4d257aeb