pyface


Namepyface JSON
Version 8.0.0 PyPI version JSON
download
home_page
SummaryTraits-capable windowing framework
upload_time2023-04-06 12:52:27
maintainer
docs_urlNone
author
requires_python>=3.7
licenseThis software is OSI Certified Open Source Software. OSI Certified is a certification mark of the Open Source Initiative. Copyright (c) 2006, Enthought, Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of Enthought, Inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
keywords gui traits traitsui pyqt pyside wxpython
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ==========================================
Pyface: Traits-capable Windowing Framework
==========================================

The Pyface project contains a toolkit-independent GUI abstraction layer,
which is used to support the "visualization" features of the Enthought Tool
Suite libraries.  Pyface contains Traits-aware wrappers of standard GUI
elements such as Windows, Dialogs and Fields, together with the "Tasks"
application framework which provides a rich GUI experience with dock panes,
tabbed editors, and so forth.  This permits you to write cross-platform
interactive GUI code without needing to use the underlying GUI backend.

The following GUI backends are supported:

- PySide2 (stable) and PySide6 (experimental)
- PyQt5 (stable) and PyQt6 (in development)
- wxPython 4 (experimental)

Example
-------

The following code creates a window with a simple Python shell:

..  code-block:: python

    from pyface.api import ApplicationWindow, GUI, IPythonShell

    class MainWindow(ApplicationWindow):
        """ The main application window. """

        #: The PythonShell that forms the contents of the window
        shell = Instance(IPythonShell, allow_none=False)

        def _create_contents(self, parent):
            """ Create the editor. """
            self.shell.create(parent)
            return self.shell.control

        def destroy(self):
            self.shell.destroy()
            super().destroy()

        def _shell_default(self):
            from pyface.api import PythonShell
            return PythonShell()

    # Application entry point.
    if __name__ == "__main__":
        # Create the GUI.
        gui = GUI()

        # Create and open the main window.
        window = MainWindow(title="Python Shell", size=(640, 480))
        window.open()

        # Start the GUI event loop!
        gui.start_event_loop()

..  image:: https://raw.github.com/enthought/pyface/main/shell_window.png
    :alt: A Pyface GUI window containing a Python shell.

Installation
------------

Pyface is a pure Python package.  In most cases Pyface will be installable
using a simple ``pip install`` command.

To install with a backend, choose one of the following, as appropriate:

..  code-block:: console

    $ pip install pyface[pyside2]

    $ pip install pyface[pyside6]

    $ pip install pyface[pyqt5]

    $ pip install pyface[wx]

Some optional functionality uses ``pillow`` and ``numpy`` and these can be
installed using optional dependencies:

..  code-block:: console

    $ pip install pyface[pillow]

    $ pip install pyface[numpy]

For running tests a few more packages are required:

..  code-block:: console

    $ pip install pyface[test]

Documentation
-------------

* `Online Documentation <http://docs.enthought.com/pyface/>`_.

* `API Documentation <http://docs.enthought.com/pyface/api/pyface.html>`_.

.. end_of_long_description

Developing Pyface
-----------------

The `etstool.py` script provides utilities to assist developers wanting to work
on Pyface.  To use it, you will need to have the source checked out via Git,
Enthought's `EDM <http://docs.enthought.com/edm/>`__ distribution manager, and
a minimal environment containing at least the
`Click <http://click.pocoo.org/>`__ library.

You can then follow the instructions in ``etstool.py``.  In particular:

- use `etstool.py install` to create environments for particular toolkits and
  runtimes
- use `etstool.py shell` to activate those environments
- use `etstool.py test` to run the tests in those environments
- use `etstool.py flake8` to perform style checks
- use `etstool.py docs` to build the documentation
- use `etstool.py test-all` to run the tests across all supported runtimes and toolkits

License
-------

Pyface source code is licensed with a BSD-style license.  Some default images
are licensed with other licenses. See the license files for further
information.

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "pyface",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "",
    "keywords": "gui,traits,traitsui,pyqt,pyside,wxpython",
    "author": "",
    "author_email": "Enthought <info@enthought.com>",
    "download_url": "https://files.pythonhosted.org/packages/0d/eb/69bbe2ff61ebe978b46d76cba33cc5a4ad3940528cfed322ddbb3843a5b1/pyface-8.0.0.tar.gz",
    "platform": null,
    "description": "==========================================\nPyface: Traits-capable Windowing Framework\n==========================================\n\nThe Pyface project contains a toolkit-independent GUI abstraction layer,\nwhich is used to support the \"visualization\" features of the Enthought Tool\nSuite libraries.  Pyface contains Traits-aware wrappers of standard GUI\nelements such as Windows, Dialogs and Fields, together with the \"Tasks\"\napplication framework which provides a rich GUI experience with dock panes,\ntabbed editors, and so forth.  This permits you to write cross-platform\ninteractive GUI code without needing to use the underlying GUI backend.\n\nThe following GUI backends are supported:\n\n- PySide2 (stable) and PySide6 (experimental)\n- PyQt5 (stable) and PyQt6 (in development)\n- wxPython 4 (experimental)\n\nExample\n-------\n\nThe following code creates a window with a simple Python shell:\n\n..  code-block:: python\n\n    from pyface.api import ApplicationWindow, GUI, IPythonShell\n\n    class MainWindow(ApplicationWindow):\n        \"\"\" The main application window. \"\"\"\n\n        #: The PythonShell that forms the contents of the window\n        shell = Instance(IPythonShell, allow_none=False)\n\n        def _create_contents(self, parent):\n            \"\"\" Create the editor. \"\"\"\n            self.shell.create(parent)\n            return self.shell.control\n\n        def destroy(self):\n            self.shell.destroy()\n            super().destroy()\n\n        def _shell_default(self):\n            from pyface.api import PythonShell\n            return PythonShell()\n\n    # Application entry point.\n    if __name__ == \"__main__\":\n        # Create the GUI.\n        gui = GUI()\n\n        # Create and open the main window.\n        window = MainWindow(title=\"Python Shell\", size=(640, 480))\n        window.open()\n\n        # Start the GUI event loop!\n        gui.start_event_loop()\n\n..  image:: https://raw.github.com/enthought/pyface/main/shell_window.png\n    :alt: A Pyface GUI window containing a Python shell.\n\nInstallation\n------------\n\nPyface is a pure Python package.  In most cases Pyface will be installable\nusing a simple ``pip install`` command.\n\nTo install with a backend, choose one of the following, as appropriate:\n\n..  code-block:: console\n\n    $ pip install pyface[pyside2]\n\n    $ pip install pyface[pyside6]\n\n    $ pip install pyface[pyqt5]\n\n    $ pip install pyface[wx]\n\nSome optional functionality uses ``pillow`` and ``numpy`` and these can be\ninstalled using optional dependencies:\n\n..  code-block:: console\n\n    $ pip install pyface[pillow]\n\n    $ pip install pyface[numpy]\n\nFor running tests a few more packages are required:\n\n..  code-block:: console\n\n    $ pip install pyface[test]\n\nDocumentation\n-------------\n\n* `Online Documentation <http://docs.enthought.com/pyface/>`_.\n\n* `API Documentation <http://docs.enthought.com/pyface/api/pyface.html>`_.\n\n.. end_of_long_description\n\nDeveloping Pyface\n-----------------\n\nThe `etstool.py` script provides utilities to assist developers wanting to work\non Pyface.  To use it, you will need to have the source checked out via Git,\nEnthought's `EDM <http://docs.enthought.com/edm/>`__ distribution manager, and\na minimal environment containing at least the\n`Click <http://click.pocoo.org/>`__ library.\n\nYou can then follow the instructions in ``etstool.py``.  In particular:\n\n- use `etstool.py install` to create environments for particular toolkits and\n  runtimes\n- use `etstool.py shell` to activate those environments\n- use `etstool.py test` to run the tests in those environments\n- use `etstool.py flake8` to perform style checks\n- use `etstool.py docs` to build the documentation\n- use `etstool.py test-all` to run the tests across all supported runtimes and toolkits\n\nLicense\n-------\n\nPyface source code is licensed with a BSD-style license.  Some default images\nare licensed with other licenses. See the license files for further\ninformation.\n",
    "bugtrack_url": null,
    "license": "This software is OSI Certified Open Source Software. OSI Certified is a certification mark of the Open Source Initiative.  Copyright (c) 2006, Enthought, Inc. All rights reserved.  Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:  * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of Enthought, Inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ",
    "summary": "Traits-capable windowing framework",
    "version": "8.0.0",
    "split_keywords": [
        "gui",
        "traits",
        "traitsui",
        "pyqt",
        "pyside",
        "wxpython"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5244cc3b77aadd047d52625eb8f7361e6b34f114100d95706f0716dc4dde1f99",
                "md5": "972f1436e704e3a78847322415a86beb",
                "sha256": "f636ffd4b9271767b9c06f67f0b407e04cf79f1ff2b6717a8a106233c48b9cc0"
            },
            "downloads": -1,
            "filename": "pyface-8.0.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "972f1436e704e3a78847322415a86beb",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 1307345,
            "upload_time": "2023-04-06T12:52:25",
            "upload_time_iso_8601": "2023-04-06T12:52:25.802227Z",
            "url": "https://files.pythonhosted.org/packages/52/44/cc3b77aadd047d52625eb8f7361e6b34f114100d95706f0716dc4dde1f99/pyface-8.0.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0deb69bbe2ff61ebe978b46d76cba33cc5a4ad3940528cfed322ddbb3843a5b1",
                "md5": "6b56e072516e6254ab048d974b2de746",
                "sha256": "7e13618347b7a648ed20cdbd4fd1a51648f5010291f35e4e0ff1bf70a720cbf8"
            },
            "downloads": -1,
            "filename": "pyface-8.0.0.tar.gz",
            "has_sig": false,
            "md5_digest": "6b56e072516e6254ab048d974b2de746",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 7793450,
            "upload_time": "2023-04-06T12:52:27",
            "upload_time_iso_8601": "2023-04-06T12:52:27.619533Z",
            "url": "https://files.pythonhosted.org/packages/0d/eb/69bbe2ff61ebe978b46d76cba33cc5a4ad3940528cfed322ddbb3843a5b1/pyface-8.0.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-04-06 12:52:27",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "lcname": "pyface"
}
        
Elapsed time: 0.08791s