File: event_loop.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 (12 lines) | stat: -rw-r--r-- 179 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
# event_loop.py

from traits.api import HasTraits, Int
from pyface.api import GUI


class Counter(HasTraits):
    value = Int()


Counter().edit_traits()
GUI().start_event_loop()