pants.contrib.qt.install(app=None, timeout=0.02, engine=None)[source]

Creates a QTimer instance that will be triggered continuously to call Engine.poll(), ensuring that Pants remains responsive.

Argument Default Description
app None Optional. The QCoreApplication to attach to. If no application is provided, it will attempt to find an existing application in memory, or, failing that, create a new application instance.
timeout 0.02 Optional. The maximum time to wait, in seconds, before running Engine.poll().
engine   Optional. The pants.engine.Engine instance to use.