git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39640 
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
     }
     %pythoncode { GetUniChar = GetUnicodeKey }
 
     }
     %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,
 
     DocDeclStr(
         wxUint32 , GetRawKeyCode() const,