TomSchimansky / TkinterMapView

A python Tkinter widget to display tile based maps like OpenStreetMap or Google Satellite Images.
Creative Commons Zero v1.0 Universal
596 stars 88 forks source link

Problem when using tkintermapview #71

Open Adzik22 opened 1 year ago

Adzik22 commented 1 year ago

Hello, I want to use tkintermapview but when I run my program, I get errors that I don't understand. The console tells me that "tkinter.CENTER" is not defined but I never wrote that. Can you help me? I will give you my code.

ps: I am French so my English must not be very good sorry and my code has French variables

code.txt

roneymoon commented 1 year ago

i guess you have an error in line 16 of your code carte_monde.place(relx=0.5, rely=0.5, anchor=LEFT) try using achor="nw" this actually runs your code without any problem and console doesn't throw any errors. i guess it is because you have used from tkinter import *. instead if you use import tkinter as tk and carte_monde.place(relx=0.5, rely=0.5, anchor=tk.LEFT) then this should also work. by the way am a complete beginner and as much as i could understand your code this should be the problem you might be facing.