discogui discovers GUI elements
- Links:
documentation: http://discogui.readthedocs.org
- Features:
python module
works on Linux
does not depend on Accessibility technologies
toolkit independent
only basic tests on very simple GUI
GUI should be displayed on Xvfb or Xephyr
- Known problems:
Python 3 is not supported
slow
- Possible applications:
automatic GUI testing
automatic GUI control
Basic usage
from discogui.buttons import discover_buttons
from easyprocess import EasyProcess
from pyvirtualdisplay import Display
with Display():
with EasyProcess('zenity --question') as p:
p.sleep(1)
buttons = discover_buttons()
print buttons
Installation
General
Ubuntu 14.04
sudo apt-get install python-pip xvfb python-xlib scrot python-pil xdotool sudo pip install https://github.com/pepijndevos/PyMouse/zipball/master sudo pip install discogui
Uninstall
# as root pip uninstall discogui
Usage
basic
Code:
#-- include('examples/basic.py')--#
'''
1. start zenity Yes/No dialog on Xvfb
2. discover buttons using :mod:`discogui.buttons` module
3. print rectangles
'''
from discogui.buttons import discover_buttons
from easyprocess import EasyProcess
from pyvirtualdisplay import Display
def main():
with Display(visible=0):
with EasyProcess('zenity --question') as p:
p.sleep(5)
buttons = discover_buttons()
print( buttons )
if __name__ == '__main__':
main()
#-#
Output:
#-- sh('python -m discogui.examples.basic 2>/dev/null')--#
[ScreenRect((582,407,667,442)), ScreenRect((491,407,576,442))]
#-#
Metadata
Release files for discogui 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| discogui-0.1.tar.gz | 47.6 kB | Without provenance | Details for discogui-0.1.tar.gz |
Release files / discogui-0.1.tar.gz
| Download URL | discogui-0.1.tar.gz |
|---|---|
| Size | 47.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0831a624ccd276e83b21fd5af076026b37edc3c739bdecb04d8252f81d3f3463
|
|
BLAKE2b-256 checksum How to use checksums |
53c74c74232f34c900c658a6e487f5210124001009790925584f33ad49f6e865
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Python-urllib/2.7
|
Security for discogui 0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.