From 267985181a819f2f6a8078666255f693442672b7 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Thu, 8 Jun 2006 19:11:02 +0000 Subject: [PATCH] Add KeyEvent method for setting the m_uniChar member git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39640 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/src/_event.i | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/wxPython/src/_event.i b/wxPython/src/_event.i index f2a5aab355..979fbf1604 100644 --- a/wxPython/src/_event.i +++ b/wxPython/src/_event.i @@ -1330,6 +1330,17 @@ function is only meaningfule in a Unicode build of wxPython.", ""); } %pythoncode { GetUniChar = GetUnicodeKey } + %extend { + DocStr( + SetUnicodeKey, + "Set the Unicode value of the key event, but only if this is a Unicode +build of wxPython.", ""); + void SetUnicodeKey(int uniChar) { + %#if wxUSE_UNICODE + self->m_uniChar = uniChar; + %#endif + } + } DocDeclStr( wxUint32 , GetRawKeyCode() const,