Skip to main content
https://travis-ci.org/enthought/traitsui.svg?branch=master https://ci.appveyor.com/api/projects/status/gkcirica40xx2qyk/branch/master?svg=true https://codecov.io/github/enthought/traitsui/coverage.svg?branch=master

The TraitsUI project contains a toolkit-independent GUI abstraction layer, which is used to support the “visualization” features of the Traits package. Thus, you can write model in terms of the Traits API and specify a GUI in terms of the primitives supplied by TraitsUI (views, items, editors, etc.), and let TraitsUI and your selected toolkit and back-end take care of the details of displaying them.

The following GUI backends are supported:

  • wxPython

  • PyQt

  • PySide

Warning: In TraitsUI version 5.0 the default GUI backend will change from wx to qt4.

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)

we can use TraitsUI to specify a 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')),
    buttons=['OK', 'Cancel'],
    resizable=True,
)

person.configure_traits(view=person_view)

which creates a GUI which looks like this:

https://raw.github.com/enthought/traitsui/master/README_example.png

Prerequisites

If you want to run traitsui, you must also install:

Metadata

Release files for traitsui 5.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distributions (sdists)

Source distribution for traitsui 5.1.0
File Size Uploaded
traitsui-5.1.0.zip 5.5 MB Details
traitsui-5.1.0.tar.gz 5.1 MB Details
traitsui-5.1.0.tar.bz2 5.1 MB Details

Release files / traitsui-5.1.0.zip

Download URL traitsui-5.1.0.zip
Size 5.5 MB
Tags Source
SHA-256 checksum
How to use checksums
5a9148278a01a11b69ec89d7e55e8c798de6e6c411f81031bb2ed23f9284f1c4
BLAKE2b-256 checksum
How to use checksums
3b15b99f06614ebef488a34a19a5c3b4f86124d85627a16a356c6017e29e4de2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / traitsui-5.1.0.tar.gz

Download URL traitsui-5.1.0.tar.gz
Size 5.1 MB
Tags Source
SHA-256 checksum
How to use checksums
8f68b4a4fcc23837fda89af66a0100fb23f0574204838b4790f5109a69924fb8
BLAKE2b-256 checksum
How to use checksums
4526722de80f92e752ac12299b85b63a73888cb7db0cfe4266f01e7d999b9295
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / traitsui-5.1.0.tar.bz2

Download URL traitsui-5.1.0.tar.bz2
Size 5.1 MB
Tags Source
SHA-256 checksum
How to use checksums
d0e8f3db59dcb45a3bf4be76d3599d22964de145d385c15a8b4c8c8844f6bec8
BLAKE2b-256 checksum
How to use checksums
554f3e66c8b131ef4f1b198106f07a0bdc612d6e2a7989471994512bfad087d2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

8.0.0

2 release files

7.4.3

2 release files

7.4.2

2 release files

7.4.1

2 release files

7.4.0

2 release files

7.3.1

2 release files

7.3.0

2 release files

7.2.1

1 release file

7.2.0

1 release file

7.1.1

1 release file

7.1.0

1 release file

7.0.1

1 release file

7.0.0

1 release file

6.1.3

1 release file

6.1.2

1 release file

6.1.1

1 release file

6.1.0

1 release file

6.0.0

1 release file

This release

5.1.0 This release

3 release files

5.0.0

3 release files

4.5.1

3 release files

4.5.0

3 release files

4.4.0

1 release file

4.3.0

4.2.0

4.1.0

4.0.1

4.0.0

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page