Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wxGUI/vdigit: fix keyboard shortcut for activating point/line tool #2522

Merged

Conversation

tmszi
Copy link
Member

@tmszi tmszi commented Aug 13, 2022

Describe the bug
Vector Digitizer keyboard shortcut for activating point/line tool doesn't work.

To Reproduce
Steps to reproduce the behavior:

  1. Launch Vector Digitizer g.gui.vdigit -c map=vdigit
  2. Press keyboard shortcut Ctrl + P or Ctrl + L
  3. See error
Traceback (most recent call last):
  File
"/usr/lib64/grass83/gui/wxpython/vdigit/mapwindow.py", line
142, in OnKeyDown

event = wx.CommandEvent(winid=self.toolbar.addPoint)
TypeError
:
CommandEvent(): arguments did not match any overloaded call:
  overload 1: 'winid' is not a valid keyword argument
  overload 2: 'winid' is not a valid keyword argument

Expected behavior
Vector Digitizer keyboard shortcut for activating point/line tool should be work without error message.

System description:

  • Operating System: all
  • GRASS GIS version: all

@tmszi tmszi added bug Something isn't working GUI wxGUI related labels Aug 13, 2022
@tmszi tmszi added this to the 8.2.1 milestone Aug 13, 2022
@tmszi tmszi merged commit 59e2974 into OSGeo:main Aug 14, 2022
@tmszi tmszi deleted the wxgui-vdigit-fix-add-line-boundary-key-shortcut branch August 14, 2022 07:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working GUI wxGUI related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants