Refer: http://webcvs.freedesktop.org/ldtp/ldtp/src/client-handler.c
1 | on success and 0 on no existing window |
from ldtp import *
# if GTK File selector is opened the following function will return 1, else 0
guiexist ('dlgOpenFile...')
guiexist ('dlgOpenFile...', 'btnOpen') # Returns 1, If window exist and also the object exist
guiexist ('dlgOpenFile...', 'btnabc') # Returns 0