• Stars
    star
    292
  • Rank 136,688 (Top 3 %)
  • Language
    Python
  • License
    Other
  • Created about 13 years ago
  • Updated 4 days ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

TraitsUI: Traits-capable windowing framework

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 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

Installation

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

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, pip or other package managers.

Running the Test Suite

To run the test suite, you will need to install Git and EDM as well as have a Python environment which has install Click available. You can then follow the instructions in etstool.py. In particular:

> python etstool.py test_all

will run tests in all supported environments automatically.

More Repositories

1

mayavi

3D visualization of scientific data in Python
Python
1,203
star
2

pyql

Cython QuantLib wrappers
Cython
912
star
3

traits

Observable typed attributes for Python classes
Python
415
star
4

chaco

Chaco is a Python package for building interactive and custom 2-D plots.
Python
290
star
5

comtypes

A pure Python, lightweight COM client and server framework, based on the ctypes Python FFI package.
Python
274
star
6

pyface

pyface: traits-capable windowing framework
Python
103
star
7

Numpy-Tutorial-SciPyConf-2019

Numpy-Tutorial-SciPyConf-2019
Python
97
star
8

enable

Enable: low-level drawing and interaction
C
91
star
9

envisage

Envisage is a Python-based framework for building applications whose functionalities can be extended by adding "plug-ins".
Python
80
star
10

scimath

Python
64
star
11

Numpy-Tutorial-SciPyConf-2018

SciPy 2018 NumPy tutorial
Python
56
star
12

codetools

Tools for Python code analysis and execution.
Python
50
star
13

jigna

HTML frontend for Traits models.
Python
39
star
14

apptools

Python
38
star
15

ets

ets.py is a utility to clone and manage various Enthought Tool Suite packages
Python
34
star
16

Numpy-Tutorial-SciPyConf-2020

Numpy-Tutorial-SciPyConf-2020
Jupyter Notebook
29
star
17

terraform-modules

Reusable terraform modules
HCL
26
star
18

graphcanvas

Python
25
star
19

qt_binder

Thinly wrap Qt widgets with Traits
Python
19
star
20

Numpy-Tutorial-SciPyConf-2021

Public GitHub repo for SciPy 2021 tutorial (Introduction to Numerical Computing With NumPy)
Jupyter Notebook
17
star
21

blockcanvas

Python
16
star
22

pywin32-ctypes

A (partial) reimplementation of pywin32 in pure python
Python
15
star
23

traits-enaml

A library to facilitate interoperation of Traits with Enaml > 0.8.x
Python
15
star
24

Numpy-Tutorial-SciPyConf-2022

Public GitHub repo for SciPy 2022 tutorial (Introduction to Numerical Computing With NumPy)
Jupyter Notebook
14
star
25

encore

A Collection of core-level utility modules for Enthought projects
Python
14
star
26

ibm2ieee

NumPy ufuncs for converting IBM-format hexadecimal floating-point to IEEE 754-format binary floating-point.
Python
9
star
27

traits-futures

Reactive background processing for TraitsUI applications
Python
8
star
28

ets-examples

Examples showing how the Enthought Tool Suite packages can work together.
Python
5
star
29

distarray

Default Repo description from terraform module
Python
5
star
30

blusky

BluSky
Jupyter Notebook
5
star
31

Numpy-Tutorial-SciPyConf-2023

Public GitHub repo for SciPy 2023 tutorial (Introduction to Numerical Computing With NumPy)
Jupyter Notebook
5
star
32

vpsearch

Fast similarity search for genomic sequences via vantage-point trees
Cython
4
star
33

ncurses-5.5

C
4
star
34

ensemble

High-level widgets for building Python applications
Python
4
star
35

etsproxy

Python
4
star
36

enaml

Default Repo description from terraform module
Python
3
star
37

sat-solver

Default Repo description from terraform module
Python
3
star
38

rested

Default Repo description from terraform module
Python
2
star
39

okonomiyaki

Okonomiyaki is aimed at consolidating a lot of our low-level code used for Enthought's eggs and python runtimes.
Python
2
star
40

traits4

Default Repo description from terraform module
Python
2
star
41

db

Default Repo description from terraform module
C
2
star
42

bzip2-1.0.6

Default Repo description from terraform module
C
2
star
43

tcl

Default Repo description from terraform module
C
1
star
44

qt-mobility

Default Repo description from terraform module
C++
1
star
45

appinst

Default Repo description from terraform module
C
1
star
46

scipy-refactor

Default Repo description from terraform module
C++
1
star
47

nfftpy

Default Repo description from terraform module
Python
1
star
48

setup-edm-action

Setup EDM for GitHub Actions CI
JavaScript
1
star
49

db-4.7.25

Default Repo description from terraform module
C
1
star
50

machotools

Default Repo description from terraform module
Python
1
star
51

graph

Default Repo description from terraform module
C
1
star
52

gom-jabbar

gom-jabbar πŸœπŸ› - Unit testing for NGSPICE code models
Python
1
star
53

glfwpy

Default Repo description from terraform module
Python
1
star
54

Numpy-Tutorial-SciPyConf-2015

Default Repo description from terraform module
Python
1
star
55

ctraits

Default Repo description from terraform module
Python
1
star
56

etsdevtools

Default Repo description from terraform module
Python
1
star
57

Python-2.7.3

Default Repo description from terraform module
Python
1
star
58

pikos

Default Repo description from terraform module
Python
1
star