File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010#
1111
1212setup (name = "tkintermapview" ,
13- version = "1.6 " ,
13+ version = "1.7 " ,
1414 author = "Tom Schimansky" ,
1515 license = "Creative Commons Zero v1.0 Universal" ,
1616 url = "https://github.com/TomSchimansky/TkinterMapView" ,
Original file line number Diff line number Diff line change 1- __version__ = "1.6 "
1+ __version__ = "1.7 "
22
33from .map_widget import TkinterMapView
44from .offline_loading import OfflineLoader
Original file line number Diff line number Diff line change @@ -138,11 +138,15 @@ 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- xerox .copy (f"{ coordinate_mouse_pos [0 ]:.7f} { coordinate_mouse_pos [1 ]:.7f} " )
142141 try :
142+ xerox .copy (f"{ coordinate_mouse_pos [0 ]:.7f} { coordinate_mouse_pos [1 ]:.7f} " )
143143 tkinter .messagebox .showinfo (title = "" , message = "Coordinates copied to clipboard!" )
144+
144145 except Exception :
145- pass
146+ if sys .platform .startswith ("linux" ):
147+ tkinter .messagebox .showinfo (title = "" , message = "Error copying to clipboard.\n Try install xclip:\n 'sudo apt-get install xclip'" )
148+ else :
149+ tkinter .messagebox .showinfo (title = "" , message = "Error copying to clipboard." )
146150
147151 m = tkinter .Menu (self , tearoff = 0 )
148152 m .add_command (label = f"{ coordinate_mouse_pos [0 ]:.7f} { coordinate_mouse_pos [1 ]:.7f} " ,
You can’t perform that action at this time.
0 commit comments