Skip to content

Commit 8fb3300

Browse files
author
Tom Schimansky
committed
changed clipboard to xerox
1 parent 507851b commit 8fb3300

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ requests==2.26.0
33
pillow~=9.0.1
44
future~=0.18.2
55
geocoder
6-
clipboard
6+
xerox

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@
2121
classifiers=["Operating System :: OS Independent",
2222
"Programming Language :: Python :: 3",
2323
"License :: CC0 1.0 Universal (CC0 1.0) Public Domain Dedication"],
24-
install_requires=["geocoder", "pillow", "requests", "clipboard"],
24+
install_requires=["geocoder", "pillow", "requests", "xerox"],
2525
python_requires=">=3.6")

tkintermapview/map_widget.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import sys
99
import io
1010
import sqlite3
11-
import clipboard
11+
import xerox
1212
from PIL import Image, ImageTk
1313
from typing import Callable
1414

@@ -138,7 +138,7 @@ def mouse_right_click(self, event):
138138
coordinate_mouse_pos = num2deg(tile_mouse_x, tile_mouse_y, round(self.zoom))
139139

140140
def click_coordinates_event():
141-
clipboard.copy(f"{coordinate_mouse_pos[0]:.7f} {coordinate_mouse_pos[1]:.7f}")
141+
xerox.copy(f"{coordinate_mouse_pos[0]:.7f} {coordinate_mouse_pos[1]:.7f}")
142142
try:
143143
tkinter.messagebox.showinfo(title="", message="Coordinates copied to clipboard!")
144144
except Exception:

0 commit comments

Comments
 (0)