TomSchimansky / TomSchimansky/TkinterMapView
Cant change the placement of the map with .pack or .place [question]
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 743
- Forks
- 110
- PR merge metrics
- No merged PRs in 30d
Description
Hi everyone,
I need to change the placement of my map on the layout.
So far I tried to change it with .pack(anchor= NW) but it didn't work. There is no change at all when I tried this.
I also tried to use .place(x=20,y=20) But when I tried this, map disappeared from the app.
Am I doing something wrong? Can you help me out please?
from tkinter import *
import tkintermapview
def callGui():
root = Tk() # title
root.title("My app")
root.geometry('1000x600') # width/length
my_label = LabelFrame(root)
my_label.pack(pady=20)
map_widget = tkintermapview.TkinterMapView(my_label, width=300,height=200,corner_radius=0)
#set coordinates
map_widget.set_position(41.002697, 39.716763)
#set a zoom level
map_widget.set_zoom(12)
map_widget.pack(anchor=NW) #no change
#map_widget.place(x=20,y=20) # map disappears
root.mainloop()
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by running the provided Python Tkinter snippet and compare the behavior of .pack(anchor=NW) with .place(x=20,y=20). The issue mentions no repository files or tests; done would be a confirmed explanation of the placement behavior and, if appropriate, a concise usage-documentation update.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- desktop
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100