Logo Search packages:      
Sourcecode: ldtp-doc version File versions  Download package

hasstate

Syntax

hasstate ('<window name>', '<object name>', <object SPI state-1>[, ..., <object SPI state-n>])

Description

Todo:

Implementation

Todo:
Return values:
1 on success, 0 on failure
Refer: http://webcvs.freedesktop.org/ldtp/ldtp/src/client-handler.c, http://webcvs.freedesktop.org/ldtp/ldtp/python/ldtp.py

Example

With respect to gedit window, first tab

from ldtp import *

hasstate ('*-gedit', 'txt0', state.FOCUSABLE)

hasstate ('*-gedit', 'txt0', state.FOCUSABLE + state.VISIBLE)

Author:
Nagappan <nagappan@gmail.com>

Generated by  Doxygen 1.6.0   Back to index