Giter Site home page Giter Site logo

bygreencn / qtpy Goto Github PK

View Code? Open in Web Editor NEW

This project forked from spyder-ide/qtpy

0.0 0.0 0.0 329 KB

Provides an uniform layer to support PyQt5, PySide2, PyQt4 and PySide with a single codebase

License: MIT License

Python 98.08% Shell 1.92%

qtpy's Introduction

QtPy: Abstraction layer for PyQt5/PyQt4/PySide2/PySide

license pypi version conda version download count OpenCollective Backers Join the chat at https://gitter.im/spyder-ide/public
PyPI status Build status CircleCI Coverage Status

Copyright ยฉ 2009โ€“2019 The Spyder Development Team

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 can write your code as if you were using PySide2 but import Qt modules from qtpy instead of PySide2 (or PyQt5)

Attribution and acknowledgments

This project is based on the pyqode.qt project and the spyderlib.qt module from the Spyder project, and also includes contributions adapted from qt-helpers, developed as part of the glue project.

Unlike pyqode.qt this is not a namespace package, so it is not tied to a particular project or namespace.

License

This project is released under the MIT license.

Requirements

You need PyQt5, PyQt4, PySide2 or PySide installed in your system to make use of QtPy. If several of these packages are found, PyQt5 is used by default unless you set the QT_API environment variable.

QT_API can take the following values:

  • pyqt5 (to use PyQt5).
  • pyqt or pyqt4 (to use PyQt4).
  • pyside2 (to use PySide2)
  • pyside (to use PySide).

Installation

pip install qtpy

or

conda install qtpy

Contributing

Everyone is welcome to contribute!

Sponsors

Become a sponsor to get your logo on our README on Github.

Sponsors

qtpy's People

Contributors

almarklein avatar anntzer avatar astrofrog avatar cam-gerlach avatar ccordoba12 avatar daniel-edler avatar davvid avatar dgovil avatar dpizetta avatar fedemiorelli avatar ghisvail avatar goanpeca avatar jasongilholme avatar jschueller avatar kurtjacobson avatar milanmatic avatar nodd avatar phil65 avatar quantifiedcode-bot avatar rlaverde avatar stonebig avatar sylvaincorlay avatar tobiasgehring avatar ulricheck avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.