]> git.saurik.com Git - wxWidgets.git/commitdiff
Add KeyEvent method for setting the m_uniChar member
authorRobin Dunn <robin@alldunn.com>
Thu, 8 Jun 2006 19:11:02 +0000 (19:11 +0000)
committerRobin Dunn <robin@alldunn.com>
Thu, 8 Jun 2006 19:11:02 +0000 (19:11 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39640 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/src/_event.i

index f2a5aab3555a41908be22965988300b7612c2b86..979fbf16049de7adcd1e937fedcf9b28a258f1fd 100644 (file)
@@ -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,