From b67671ea6fc01c468a9ff71ef8242e79a742d341 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Thu, 28 Sep 2017 08:15:03 -0700 Subject: [PATCH] Fix AccereratorTable sample code --- .../snippets/python/converted/wx.AcceleratorTable.1.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/sphinx/rest_substitutions/snippets/python/converted/wx.AcceleratorTable.1.py b/docs/sphinx/rest_substitutions/snippets/python/converted/wx.AcceleratorTable.1.py index e681a8da..11b6c9e2 100644 --- a/docs/sphinx/rest_substitutions/snippets/python/converted/wx.AcceleratorTable.1.py +++ b/docs/sphinx/rest_substitutions/snippets/python/converted/wx.AcceleratorTable.1.py @@ -1,10 +1,10 @@ entries = [wx.AcceleratorEntry() for i in xrange(4)] - entries[0].Set(wx.ACCEL_CTRL, 'N', ID_NEW_WINDOW) - entries[1].Set(wx.ACCEL_CTRL, 'X', wx.ID_EXIT) - entries[2].Set(wx.ACCEL_SHIFT, 'A', ID_ABOUT) + entries[0].Set(wx.ACCEL_CTRL, ord('N'), ID_NEW_WINDOW) + entries[1].Set(wx.ACCEL_CTRL, ord('X'), wx.ID_EXIT) + entries[2].Set(wx.ACCEL_SHIFT, ord('A'), ID_ABOUT) entries[3].Set(wx.ACCEL_NORMAL, wx.WXK_DELETE, wx.ID_CUT) accel = wx.AcceleratorTable(entries) - frame.SetAcceleratorTable(accel) \ No newline at end of file + frame.SetAcceleratorTable(accel)