Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

UI testing library for PyQt

Project Description

satin-python is simple UI matcher and driver library, built on top of hamcrest and PyQt


Finding specific widget
To find a specific widget, use function widget:

sub_widget = widget(dialog,

Where dialog is Qt object to examine and matcher is hamcrest matcher capable
of detecting specific widget.

To check that a widget has label with text 'Title':

assert_that(item, has_label('Title'))

Event loop
To start event loop, use @satin_suite class decorator. This will modify your
test class to start QApplication behind the scenes in order to have the event
loop running. When the test method completes, QApplication is automatically

def TestWidget():
def test_clicking_around():

satin-python is copyrighted by Tuukka Turto and is placed under
GNU General Public License. For more information, please refer to license.txt
found in the main folder.
Release History

Release History

This version
History Node


Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
satin-0.1.0.tar.gz (4.1 kB) Copy SHA256 Checksum SHA256 Source Jul 14, 2013

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting