| 1 |
#!/usr/bin/env python3 |
| 2 |
# -*- coding: utf-8 -*- |
| 3 |
|
| 4 |
# Fenrir TTY screen reader |
| 5 |
# By Chrys, Storm Dragon, and contributors. |
| 6 |
|
| 7 |
from enum import Enum |
| 8 |
|
| 9 |
from fenrirscreenreader.core import debug |
| 10 |
|
| 11 |
|
| 12 |
class FenrirEventType(Enum): |
| 13 |
ignore = 0 |
| 14 |
stop_main_loop = 1 |
| 15 |
screen_update = 2 |
| 16 |
keyboard_input = 3 |
| 17 |
plug_input_device = 4 |
| 18 |
screen_changed = 5 |
| 19 |
heart_beat = 6 |
| 20 |
execute_command = 7 |
| 21 |
remote_incomming = 8 |
| 22 |
background_task_result = 9 |
| 23 |
clipboard_sync = 10 |
| 24 |
|
| 25 |
def __int__(self): |
| 26 |
return self.value |
| 27 |
|
| 28 |
def __str__(self): |
| 29 |
return self.name |