idle_threads
IdleItem
Python object holds information if state of idle changed.
This item is used to be independent from Qt objects.
Source code in client/ayon_timers_manager/idle_threads.py
8 9 10 11 12 13 14 15 16 17 18 19 20 | |
IdleManager
Bases: QThread
Measure user's idle time in seconds. Idle time resets on keyboard/mouse input. Is able to emit signals at specific time idle.
Source code in client/ayon_timers_manager/idle_threads.py
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 | |
add_time_signal(emit_time, signal)
If any module want to use IdleManager, need to use add_time_signal
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
emit_time | int | Time when signal will be emitted. | required |
signal | Signal | Signal that will be emitted (without objects). | required |
Source code in client/ayon_timers_manager/idle_threads.py
43 44 45 46 47 48 49 50 51 52 53 | |
KeyboardThread
Bases: QThread
Listens user's keyboard input
Source code in client/ayon_timers_manager/idle_threads.py
138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 | |
MouseThread
Bases: QThread
Listens user's mouse movement.
Source code in client/ayon_timers_manager/idle_threads.py
116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 | |