dora-keyboard 0.3.7rc2__py3-none-any.whl → 0.3.8__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
dora_keyboard/main.py CHANGED
@@ -6,8 +6,14 @@ from dora import Node
6
6
 
7
7
  def main():
8
8
  node = Node()
9
+
10
+ always_none = node.next(timeout=0.001) is None
9
11
  with keyboard.Events() as events:
10
12
  while True:
13
+ if not always_none:
14
+ event_stream_is_none = node.next(timeout=0.001) is None
15
+ if event_stream_is_none:
16
+ break
11
17
  event = events.get(1.0)
12
18
  if event is not None and isinstance(event, Events.Press):
13
19
  if hasattr(event.key, "char"):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: dora-keyboard
3
- Version: 0.3.7rc2
3
+ Version: 0.3.8
4
4
  Summary: Dora dora-keyboard
5
5
  Home-page: https://github.com/dora-rs/dora.git
6
6
  License: MIT
@@ -0,0 +1,6 @@
1
+ dora_keyboard/__init__.py,sha256=Gy4qL4vCeTyA5HR1Yp3ioL4-ClJyW8oi_38CzMuMsBM,358
2
+ dora_keyboard/main.py,sha256=0B0x0OnDKgsWDAxnrW-TWYzCUkU_q71MLraZj610PC4,740
3
+ dora_keyboard-0.3.8.dist-info/METADATA,sha256=yk_ZEEL-bUNThzppigh9vdA4NgXG-HtZye35qKHHOyI,1088
4
+ dora_keyboard-0.3.8.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
5
+ dora_keyboard-0.3.8.dist-info/entry_points.txt,sha256=Ocfp-Q2hGS1St7E8cJ9RJ3X8zg7exZYLuhlJXG5Lrpc,57
6
+ dora_keyboard-0.3.8.dist-info/RECORD,,
@@ -1,6 +0,0 @@
1
- dora_keyboard/__init__.py,sha256=Gy4qL4vCeTyA5HR1Yp3ioL4-ClJyW8oi_38CzMuMsBM,358
2
- dora_keyboard/main.py,sha256=PssIJy1r-IcR4NlcaCfGc7i4Q1hDaGUwwyxnRPWl__Q,517
3
- dora_keyboard-0.3.7rc2.dist-info/METADATA,sha256=kBNC9qt6Kuo-SeA5amQgkNcMGD5RTVW4ivweZY54U5o,1091
4
- dora_keyboard-0.3.7rc2.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
5
- dora_keyboard-0.3.7rc2.dist-info/entry_points.txt,sha256=Ocfp-Q2hGS1St7E8cJ9RJ3X8zg7exZYLuhlJXG5Lrpc,57
6
- dora_keyboard-0.3.7rc2.dist-info/RECORD,,