Skip to main content

GUI discovery

Project description

discogui discovers GUI elements

  • 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

  • slow

home: https://github.com/ponty/discogui

documentation: http://ponty.github.com/discogui

Possible applications:
  • GUI unit-testing

  • automatic GUI control

Basic usage

from discogui.buttons import discover_buttons
from easyprocess import EasyProcess
from pyvirtualdisplay import Display
buttons = Display().wrap(
            EasyProcess('zenity --question').wrap(
                discover_buttons, delay=1))
print buttons()

Installation

General

  • install Xvfb and Xephyr

  • install Xlib

  • install scrot

  • install PIL

  • install xdotool

  • install setuptools

  • install latest PyMouse and the program:

    # as root
    easy_install https://github.com/pepijndevos/PyMouse/zipball/master
    easy_install discogui

Ubuntu

sudo apt-get install python-setuptools
sudo apt-get install xvfb
sudo apt-get install xserver-xephyr
sudo apt-get install python-xlib
sudo apt-get install scrot
sudo apt-get install python-imaging
sudo apt-get install xdotool

# PyPI version of PyMouse is too old, this is the latest
sudo easy_install https://github.com/pepijndevos/PyMouse/zipball/master

sudo easy_install discogui

Uninstall

# as root
pip uninstall discogui

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

discogui-0.0.0.tar.gz (37.3 kB view details)

Uploaded Source

File details

Details for the file discogui-0.0.0.tar.gz.

File metadata

  • Download URL: discogui-0.0.0.tar.gz
  • Upload date:
  • Size: 37.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for discogui-0.0.0.tar.gz
Algorithm Hash digest
SHA256 3332c0b8b2f3277c567212564607fb68056367fa453482e870b537b2e9e20256
MD5 b5e9b2c5ba7976614917dc12f83c4bbd
BLAKE2b-256 31aa53a30bdff4f4dbc196fa96c592b06dbd3ca0f57082f63868e2dc74eb9ee3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page