From db4fcca2d7aa193eb8112f9c87a801fc86edccfe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Piel?= Date: Tue, 1 Feb 2022 16:25:17 +0100 Subject: [PATCH] docs: fix missing GetKeyCode() call in GetKeyCode() example --- .../snippets/python/converted/wx.KeyEvent.GetKeyCode.1.py | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/sphinx/rest_substitutions/snippets/python/converted/wx.KeyEvent.GetKeyCode.1.py b/docs/sphinx/rest_substitutions/snippets/python/converted/wx.KeyEvent.GetKeyCode.1.py index 0dd0be32..d96ab603 100644 --- a/docs/sphinx/rest_substitutions/snippets/python/converted/wx.KeyEvent.GetKeyCode.1.py +++ b/docs/sphinx/rest_substitutions/snippets/python/converted/wx.KeyEvent.GetKeyCode.1.py @@ -11,6 +11,7 @@ else: # It's a special key, deal with all the known ones: + keycode = event.GetKeyCode() if keycode in [wx.WXK_LEFT, wx.WXK_RIGHT]: # move cursor ... MoveCursor()