TomSchimansky / TkinterMapView

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

Compatibility with Customtkinter 5+ #63

Closed MaximFilimonovGH closed 1 year ago

MaximFilimonovGH commented 1 year ago

Hello. It seems there is an issue that TkinterMapView does not work with the new Customtkinter (5+).

File "xxx", line 642, in __init__
    self.map_widget = tkintermapview.TkinterMapView(self, corner_radius=0)
  File "C:\Users\xxx\AppData\Roaming\Python\Python310\site-packages\tkintermapview\map_widget.py", line 54, in __init__
    self.bg_color: str = self.master.cget("bg")
  File "C:\Users\xxx\AppData\Roaming\Python\Python310\site-packages\customtkinter\windows\widgets\ctk_frame.py", line 183, in cget
    return super().cget(attribute_name)
  File "C:\Users\xxx\AppData\Roaming\Python\Python310\site-packages\customtkinter\windows\widgets\core_widget_classes\ctk_base_class.py", line 153, in cget

    raise ValueError(f"'{attribute_name}' is not a supported argument. Look at the documentation for supported arguments.")
ValueError: 'bg' is not a supported argument. Look at the documentation for supported arguments.

Is TkinterMapView going to be updated soon to reflect the changed made in CustomTkinter?

Thanks!

TomSchimansky commented 1 year ago

Its fixed now with version 1.18.