============================================
TraitsUI: Traits-capable windowing framework
============================================
The TraitsUI project provides a toolkit-independent GUI abstraction layer,
which is used to support the "visualization" features of the
`Traits <http://github.com/enthought/traits>`__ package.
You can write a model using the Traits API and specify a GUI using the TraitsUI
API (views, items, editors, etc.), and let TraitsUI and your selected toolkit
back-end (Qt or Wx) take care of the details of displaying them.
Example
-------
Given a Traits model like the following::
from traits.api import HasTraits, Str, Range, Enum
class Person(HasTraits):
name = Str('Jane Doe')
age = Range(low=0)
gender = Enum('female', 'male')
person = Person(age=30)
And using TraitsUI to specify and display a GUI view::
from traitsui.api import Item, RangeEditor, View
person_view = View(
Item('name'),
Item('gender'),
Item('age', editor=RangeEditor(mode='spinner', low=0, high=150)),
buttons=['OK', 'Cancel'],
resizable=True,
)
person.configure_traits(view=person_view)
It creates a GUI which looks like this:
.. image:: https://raw.github.com/enthought/traitsui/main/README_example.png
Important Links
---------------
- Website and Documentation: `<http://docs.enthought.com/traitsui>`__
* User Manual `<http://docs.enthought.com/traitsui/traitsui_user_manual>`__
* Tutorial `<http://docs.enthought.com/traitsui/tutorials>`__
* API Documentation `<http://docs.enthought.com/traitsui/api>`__
- Source code repository: `<https://github.com/enthought/traitsui>`__
* Issue tracker: `<https://github.com/enthought/traitsui/issues>`__
- Download releases: `<https://pypi.python.org/pypi/traitsui>`__
- Mailing list: `<https://groups.google.com/forum/#!forum/ets-users>`__
Installation
------------
If you want to run traitsui, you must also install:
- Traits `<https://github.com/enthought/traits>`__
- Pyface `<https://github.com/enthought/pyface>`__
You will also need one of the following backends:
- wxPython
- PySide2
- PyQt5
Backends have additional dependencies and there are optional dependencies on
NumPy and Pandas for some editors.
TraitsUI along with all dependencies can be installed in a straightforward way
using the `Enthought Deployment Manager <http://docs.enthought.com/edm/>`__,
``pip`` or other .
Raw data
{
"_id": null,
"home_page": "http://docs.enthought.com/traitsui",
"name": "traitsui",
"maintainer": "ETS Developers",
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": "enthought-dev@enthought.com",
"keywords": "",
"author": "David C. Morrill, et. al.",
"author_email": "dmorrill@enthought.com",
"download_url": "https://files.pythonhosted.org/packages/b1/92/e184c2f4a299945fd594ec1b40e4960c1a3d955ff2f5091d559e050311a2/traitsui-7.4.3.tar.gz",
"platform": "Windows",
"description": "============================================\nTraitsUI: Traits-capable windowing framework\n============================================\n\nThe TraitsUI project provides a toolkit-independent GUI abstraction layer,\nwhich is used to support the \"visualization\" features of the\n`Traits <http://github.com/enthought/traits>`__ package.\nYou can write a model using the Traits API and specify a GUI using the TraitsUI\nAPI (views, items, editors, etc.), and let TraitsUI and your selected toolkit\nback-end (Qt or Wx) take care of the details of displaying them.\n\nExample\n-------\n\nGiven a Traits model like the following::\n\n from traits.api import HasTraits, Str, Range, Enum\n\n class Person(HasTraits):\n name = Str('Jane Doe')\n age = Range(low=0)\n gender = Enum('female', 'male')\n\n person = Person(age=30)\n\nAnd using TraitsUI to specify and display a GUI view::\n\n from traitsui.api import Item, RangeEditor, View\n\n person_view = View(\n Item('name'),\n Item('gender'),\n Item('age', editor=RangeEditor(mode='spinner', low=0, high=150)),\n buttons=['OK', 'Cancel'],\n resizable=True,\n )\n\n person.configure_traits(view=person_view)\n\nIt creates a GUI which looks like this:\n\n.. image:: https://raw.github.com/enthought/traitsui/main/README_example.png\n\nImportant Links\n---------------\n\n- Website and Documentation: `<http://docs.enthought.com/traitsui>`__\n\n * User Manual `<http://docs.enthought.com/traitsui/traitsui_user_manual>`__\n * Tutorial `<http://docs.enthought.com/traitsui/tutorials>`__\n * API Documentation `<http://docs.enthought.com/traitsui/api>`__\n\n- Source code repository: `<https://github.com/enthought/traitsui>`__\n\n * Issue tracker: `<https://github.com/enthought/traitsui/issues>`__\n\n- Download releases: `<https://pypi.python.org/pypi/traitsui>`__\n\n- Mailing list: `<https://groups.google.com/forum/#!forum/ets-users>`__\n\nInstallation\n------------\n\nIf you want to run traitsui, you must also install:\n\n- Traits `<https://github.com/enthought/traits>`__\n- Pyface `<https://github.com/enthought/pyface>`__\n\nYou will also need one of the following backends:\n\n- wxPython\n- PySide2\n- PyQt5\n\nBackends have additional dependencies and there are optional dependencies on\nNumPy and Pandas for some editors.\n\nTraitsUI along with all dependencies can be installed in a straightforward way\nusing the `Enthought Deployment Manager <http://docs.enthought.com/edm/>`__,\n``pip`` or other .\n\n",
"bugtrack_url": null,
"license": "BSD",
"summary": "traitsui: traits-capable user interfaces",
"version": "7.4.3",
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "6bea392eaa31cac6182c9e6eb01714579221d3636630ed4f20f0b6d0ae3fd606",
"md5": "6fd5d399031d9a5d7fced08e7cd70e0b",
"sha256": "e9ee458c0d18b486ce95bf31aa5fd1cf7545ec077ba10e4e7ad6185d762b7b8b"
},
"downloads": -1,
"filename": "traitsui-7.4.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "6fd5d399031d9a5d7fced08e7cd70e0b",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 1518513,
"upload_time": "2023-01-12T15:35:30",
"upload_time_iso_8601": "2023-01-12T15:35:30.100256Z",
"url": "https://files.pythonhosted.org/packages/6b/ea/392eaa31cac6182c9e6eb01714579221d3636630ed4f20f0b6d0ae3fd606/traitsui-7.4.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "b192e184c2f4a299945fd594ec1b40e4960c1a3d955ff2f5091d559e050311a2",
"md5": "f6286e8d661c042e7662cf52f9ca8545",
"sha256": "db32517e9622a0580c23209e13f8032cea00e61c6774936709ff45e76335d5b9"
},
"downloads": -1,
"filename": "traitsui-7.4.3.tar.gz",
"has_sig": false,
"md5_digest": "f6286e8d661c042e7662cf52f9ca8545",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 6775505,
"upload_time": "2023-01-12T15:35:31",
"upload_time_iso_8601": "2023-01-12T15:35:31.627462Z",
"url": "https://files.pythonhosted.org/packages/b1/92/e184c2f4a299945fd594ec1b40e4960c1a3d955ff2f5091d559e050311a2/traitsui-7.4.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-01-12 15:35:31",
"github": false,
"gitlab": false,
"bitbucket": false,
"lcname": "traitsui"
}