qte Documentation

qte is a wrapper around the PySide GUI toolkit making it simpler and more pythonic to use. No changes are made to the original PySide classes, but new classes and functions are introduced which effectively replace much of the most commonly used PySide GUI functionality.

Key features

  • All objects (i.e. those contained in PySide.QtGui, PySide.QtCore, and the new objects provided by this package) can be imported from a single namespace, e.g:

    >>> from qte import QRect, QWidget, DataModel
    

    Or, more commonly:

    >>> import qte
    >>> rect = qte.QRect()
    

    The PySide objects, i.e. those prefixed with “Q”, are exactly the same as those imported directly from PySide, all changes are in the new classes.

  • A number of convenience function had been added. See Functions for details.

  • The PySide model/view framework has been extended and simplified. See Model/View framework for more information.

  • A new singleton Application class is available, extending the functionality of PySide.QtGui.QApplication. See Application and runApp for more information.

  • A Document class is provided to manage typical document application functions, such as opening, saving, etc.

  • PySide has a range of simple, one-line editing widgets with slightly different APIs. In order to make it possible to program type-independantly, several of these have been subclassed to conform with EditWidgetABC.

Installation

qte can be installed from the cheeseshop, or downloaded directly from http://bitbucket.org/aquavitae/qte. It requires PySide >= 1.1.

Project Versions

Table Of Contents

Next topic

Tutorial

This Page