TomSchimansky / TomSchimansky/TkinterMapView

Map widget error with touchscreen

Open
#64 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
743
Forks
110
PR merge metrics
No merged PRs in 30d

Description

I am implementing a map into a tkinter project on a touchscreen device. While moving the map I get an exception in Tkinter callback. "mouse_move_x = self.last_mouse_down_position[0] - event.x
TypeError: 'NoneType' object is not subscriptable"

I believe that this has to do with the touchscreen interaction having no mouse button pressed down. I have tried to resolve this by re-writing parts of the map_widget file but with no luck.

EDIT: I think this is due to my touchscreen interpreting touch motion as a series of mouse clicks. It is the raspberry pi touch and I am stuck on how to fix this

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in the map_widget file mentioned in the report and reproduce map movement on a Raspberry Pi touchscreen. Trace the Tkinter callback around the reported mouse_move_x line and compare touchscreen motion events with mouse-button events. Done means moving the map by touch no longer raises the reported NoneType exception.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.