File: enums.py

package info (click to toggle)
python-qtpynodeeditor 0.2.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 604 kB
  • sloc: python: 5,038; makefile: 14; sh: 1
file content (23 lines) | stat: -rw-r--r-- 389 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
from enum import Enum


class NodeValidationState(str, Enum):
    valid = 'valid'
    warning = 'warning'
    error = 'error'


class PortType(str, Enum):
    none = 'none'
    input = 'input'
    output = 'output'


class ConnectionPolicy(str, Enum):
    one = 'one'
    many = 'many'


class ReactToConnectionState(str, Enum):
    reacting = 'reacting'
    not_reacting = 'not_reacting'