BSD Ports

devel/py-QtPy 2.4.1 DragonFly

Abstraction layer on top of the various Qt bindings

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
MIT
Categories
devel, python
Package size
118.1 KiB, 702.1 KiB installed

Description

QtPy is a small abstraction layer that lets you write applications using a single API call to either PyQt or PySide.

It provides support for PyQt5, PyQt4, PySide2 and PySide using the Qt5 layout (where the QtGui module has been split into QtGui and QtWidgets).

Basically, you write your code as if you were using PySide2 but import Qt modules from qtpy instead of PySide2 (or PyQt5)

In the other systems

SystemPortVersion
DragonFlydevel/py-QtPy2.4.1
FreeBSDdevel/py-QtPy2.4.3
MidnightBSDdevel/py-QtPy1.9.0_1
HardenedBSDdevel/py-QtPy2.4.3
GhostBSDdevel/py-QtPy2.4.3

Install

Binary package:

pkg install py311-QtPy

From DPorts:

cd /usr/dports/devel/py-QtPy && make install clean

Dependencies

Run dependencies 2

Configuration

No options to configure.

Service scripts
none

Message after installing

You installed py-QtPy: the abstraction layer on top of Qt bindings.

One of PyQt5, PyQt4, PySide2 or PySide bindings is required to be
installed for it to work. py-QtPy will choose between the avaiable
bindings, PyQt5 will be chosen first when available.

The QT_API environment variable can be used to force a particular
binding.