File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ https://pypi.org/project/tkintermapview/
3636Import tkinter as normal and from tkintermapview import the TkinterMapView widget.
3737``` python
3838import tkinter
39- from tkintermapview import TkinterMapView
39+ import tkintermapview
4040```
4141---
4242### Create the widget
@@ -51,7 +51,7 @@ root_tk.geometry(f"{800}x{600}")
5151root_tk.title(" map_view_example.py" )
5252
5353# create map widget
54- map_widget = TkinterMapView(root_tk, width = 800 , height = 600 , corner_radius = 0 )
54+ map_widget = tkintermapview. TkinterMapView(root_tk, width = 800 , height = 600 , corner_radius = 0 )
5555map_widget.place(relx = 0.5 , rely = 0.5 , anchor = tkinter.CENTER )
5656```
5757If you also call ` root_tk.mainloop() ` at the end, this is already a fully working example to test the map widget.
@@ -167,7 +167,7 @@ map_widget.add_left_click_map_command(left_click_event)
167167The callback function will get the decimal coordinates of the clicked location as a tuple.
168168
169169---
170- ### Utility methods of the map widget
170+ ### Utility methods
171171
172172The following methods can be useful when working with coordinates and address strings,
173173they all use the geocoder library with the OSM provider: https://geocoder.readthedocs.io/providers/OpenStreetMap.html :
You can’t perform that action at this time.
0 commit comments