Tuesday, April 19, 2022

View maps with tkintermapview

# https://www.youtube.com/watch?v=QvO4LTNDIyA


from tkinter import *

import tkintermapview


win = Tk()

win.title("Tkinter MapView")

win.geometry("900x700")


lbl1 = LabelFrame(win)

lbl1.pack(pady=20)


map_widget = tkintermapview.TkinterMapView(lbl1, width=800, height=600, corner_radius=0)

#map_widget.set_position(9.3346, 76.7077) # Kozhencherry

map_widget.set_zoom(20) # Max zoom


map_widget.set_address("Dilkusha Street, Kolkata 700017, West Bengal, India")

#map_widget.set_address("Thiruvalla Kumbazha Road, Kozhencherry, Kerala, India")

map_widget.pack()


win.mainloop()

No comments:

Post a Comment