adamerose / adamerose/PandasGUI

Change the qt calls to use qtpy to deal with different Qt bindings

Offen
#168 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Python
Sterne
3.3k
Forks
239
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

Today the best approach to ensure some consistency and flexibility across different Qt python bindings (PyQt5, PySide2, PyQt6, PySide6, ...) is the use of [QtPy: Abstraction layer for PyQt5/PyQt4/PySide2/PySide](https://github.com/spyder-ide/qtpy).

I propose a set of minor changes to ensure all the calls to Qt bindings are performed via from qtpy import.

By default the module to be called will be PyQt5 but it can be changed by setting the environment variable QT_API.

If the proposal is accepted, I will submit a git commit against the latest version.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.