File: echo_box.py

package info (click to toggle)
python-traitsui 8.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 18,232 kB
  • sloc: python: 58,982; makefile: 113
file content (14 lines) | stat: -rw-r--r-- 213 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# echo_box.py

from traits.api import HasTraits, Str


class EchoBox(HasTraits):
    input = Str()
    output = Str()

    def _input_changed(self):
        self.output = self.input


EchoBox().configure_traits()