[elbe-devel] [PATCH 02/14] Debianize - TUI signals

dion at linutronix.de dion at linutronix.de
Thu Aug 1 14:14:01 CEST 2019


From: Olivier Dion <dion at linutronix.de>

Simple enumeration of common signals to avoid written it over and over
again.

Signed-off-by: Olivier Dion <dion at linutronix.de>
---
 elbepack/debianize/base/signal.py | 13 +++++++++++++
 1 file changed, 13 insertions(+)
 create mode 100644 elbepack/debianize/base/signal.py

diff --git a/elbepack/debianize/base/signal.py b/elbepack/debianize/base/signal.py
new file mode 100644
index 00000000..80ecf2db
--- /dev/null
+++ b/elbepack/debianize/base/signal.py
@@ -0,0 +1,13 @@
+# ELBE - Debian Based Embedded Rootfilesystem Builder
+# Copyright (c) 2019 Olivier Dion <dion at linutronix.de>
+#
+# SPDX-License-Identifier: GPL-3.0-or-later
+
+
+from enum import Enum
+
+
+class SignalType(Enum):
+    QUIT = "on_quit"
+    CLICK = "on_click"
+    FLUSH = "on_flush"
-- 
2.11.0




More information about the elbe-devel mailing list