KeyboardPaster 0.1.26__tar.gz → 0.1.27__tar.gz

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.
Files changed (23) hide show
  1. {keyboardpaster-0.1.26 → keyboardpaster-0.1.27}/KeyboardPaster.egg-info/PKG-INFO +4 -1
  2. {keyboardpaster-0.1.26 → keyboardpaster-0.1.27}/PKG-INFO +4 -1
  3. {keyboardpaster-0.1.26 → keyboardpaster-0.1.27}/README.md +3 -0
  4. {keyboardpaster-0.1.26 → keyboardpaster-0.1.27}/keyboardpaster/app.py +6 -7
  5. {keyboardpaster-0.1.26 → keyboardpaster-0.1.27}/keyboardpaster/shared_resources.py +1 -1
  6. {keyboardpaster-0.1.26 → keyboardpaster-0.1.27}/KeyboardPaster.egg-info/SOURCES.txt +0 -0
  7. {keyboardpaster-0.1.26 → keyboardpaster-0.1.27}/KeyboardPaster.egg-info/dependency_links.txt +0 -0
  8. {keyboardpaster-0.1.26 → keyboardpaster-0.1.27}/KeyboardPaster.egg-info/entry_points.txt +0 -0
  9. {keyboardpaster-0.1.26 → keyboardpaster-0.1.27}/KeyboardPaster.egg-info/requires.txt +0 -0
  10. {keyboardpaster-0.1.26 → keyboardpaster-0.1.27}/KeyboardPaster.egg-info/top_level.txt +0 -0
  11. {keyboardpaster-0.1.26 → keyboardpaster-0.1.27}/LICENSE +0 -0
  12. {keyboardpaster-0.1.26 → keyboardpaster-0.1.27}/keyboardpaster/__init__.py +0 -0
  13. {keyboardpaster-0.1.26 → keyboardpaster-0.1.27}/keyboardpaster/bootstrap.py +0 -0
  14. {keyboardpaster-0.1.26 → keyboardpaster-0.1.27}/keyboardpaster/desktop.py +0 -0
  15. {keyboardpaster-0.1.26 → keyboardpaster-0.1.27}/keyboardpaster/keyboard_input.py +0 -0
  16. {keyboardpaster-0.1.26 → keyboardpaster-0.1.27}/keyboardpaster/keyboard_layout_detector.py +0 -0
  17. {keyboardpaster-0.1.26 → keyboardpaster-0.1.27}/keyboardpaster/keyboardpaster_app.kv +0 -0
  18. {keyboardpaster-0.1.26 → keyboardpaster-0.1.27}/keyboardpaster/modules/__init__.py +0 -0
  19. {keyboardpaster-0.1.26 → keyboardpaster-0.1.27}/keyboardpaster/modules/autoupdate.py +0 -0
  20. {keyboardpaster-0.1.26 → keyboardpaster-0.1.27}/keyboardpaster/res/images/keyboardpaster.png +0 -0
  21. {keyboardpaster-0.1.26 → keyboardpaster-0.1.27}/keyboardpaster.desktop +0 -0
  22. {keyboardpaster-0.1.26 → keyboardpaster-0.1.27}/setup.cfg +0 -0
  23. {keyboardpaster-0.1.26 → keyboardpaster-0.1.27}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: KeyboardPaster
3
- Version: 0.1.26
3
+ Version: 0.1.27
4
4
  Summary: A Python package to type text using the keyboard module
5
5
  Home-page: https://github.com/KnutssonDevelopment/KeyboardPaster
6
6
  Author: Brian Knutsson
@@ -68,6 +68,9 @@ On GNOME Wayland you also need `ydotool` / `ydotoold` for typing into other apps
68
68
  - Paste images as base64 code
69
69
 
70
70
  ## Changes
71
+ ### v0.1.27
72
+ - BUGFIX: App would crash on linux when copying text
73
+
71
74
  ### v0.1.26
72
75
  - BUGFIX: Pin KivyMD to 1.x so pipx install does not require pycairo/Cairo headers
73
76
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: KeyboardPaster
3
- Version: 0.1.26
3
+ Version: 0.1.27
4
4
  Summary: A Python package to type text using the keyboard module
5
5
  Home-page: https://github.com/KnutssonDevelopment/KeyboardPaster
6
6
  Author: Brian Knutsson
@@ -68,6 +68,9 @@ On GNOME Wayland you also need `ydotool` / `ydotoold` for typing into other apps
68
68
  - Paste images as base64 code
69
69
 
70
70
  ## Changes
71
+ ### v0.1.27
72
+ - BUGFIX: App would crash on linux when copying text
73
+
71
74
  ### v0.1.26
72
75
  - BUGFIX: Pin KivyMD to 1.x so pipx install does not require pycairo/Cairo headers
73
76
 
@@ -26,6 +26,9 @@ On GNOME Wayland you also need `ydotool` / `ydotoold` for typing into other apps
26
26
  - Paste images as base64 code
27
27
 
28
28
  ## Changes
29
+ ### v0.1.27
30
+ - BUGFIX: App would crash on linux when copying text
31
+
29
32
  ### v0.1.26
30
33
  - BUGFIX: Pin KivyMD to 1.x so pipx install does not require pycairo/Cairo headers
31
34
 
@@ -1,6 +1,5 @@
1
1
  import re
2
2
  import json
3
- import subprocess
4
3
  import importlib.resources
5
4
  import keyboardpaster
6
5
 
@@ -13,6 +12,7 @@ from kivy.properties import ObjectProperty, StringProperty, BooleanProperty
13
12
  from kivy.uix.textinput import TextInput
14
13
  from kivy.lang import Builder
15
14
  from kivy.clock import Clock
15
+ from kivy.core.clipboard import Clipboard
16
16
  from kivy.core.window import Window
17
17
  from kivy.factory import Factory
18
18
  from kivy.metrics import dp
@@ -461,14 +461,13 @@ class KeyboardPasterApp(MDApp):
461
461
  def show_type_error(self, error):
462
462
  MDDialog(title="Kan ikke sende tastaturinput", text=str(error)).open()
463
463
 
464
- @staticmethod
465
- def copy_text(input_text, _checkbox):
464
+ def copy_text(self, input_text, _checkbox):
466
465
  if not input_text:
467
- # print("No text found")
468
466
  return
469
-
470
- cmd = 'echo ' + input_text.strip() + '|clip'
471
- subprocess.check_call(cmd, shell=True)
467
+ try:
468
+ Clipboard.copy(input_text)
469
+ except Exception as error:
470
+ MDDialog(title="Kan ikke kopiere", text=str(error)).open()
472
471
 
473
472
  @staticmethod
474
473
  def hide_text(_input_text, _checkbox):
@@ -1,6 +1,6 @@
1
1
  from pathlib import Path
2
2
 
3
- app_version = "0.1.26"
3
+ app_version = "0.1.27"
4
4
  APP_WM_CLASS = "keyboardpaster"
5
5
 
6
6
 
File without changes