@@ -779,6 +779,26 @@ Scintilla_send_message(Scintilla *self, PyObject *args, PyObject *kwargs)
779
779
}
780
780
781
781
782
+ static PyObject *
783
+ Scintilla_send_text_message (Scintilla * self , PyObject * args , PyObject * kwargs )
784
+ {
785
+ gint msg ;
786
+ glong uptr = 0 , ret ;
787
+ const char * sptr = NULL ;
788
+ static gchar * kwlist [] = { "msg" , "lparam" , "wparam" , NULL };
789
+
790
+ SCI_RET_IF_FAIL (self );
791
+
792
+ if (PyArg_ParseTupleAndKeywords (args , kwargs , "i|lz" , kwlist , & msg , & uptr , & sptr ))
793
+ {
794
+ ret = scintilla_send_message (self -> sci , msg , uptr , sptr );
795
+ return Py_BuildValue ("l" , ret );
796
+ }
797
+
798
+ Py_RETURN_NONE ;
799
+ }
800
+
801
+
782
802
static PyMethodDef Scintilla_methods [] = {
783
803
{ "delete_marker_at_line" , (PyCFunction ) Scintilla_delete_marker_at_line , METH_KEYWORDS ,
784
804
"Deletes a line marker." },
@@ -873,6 +893,8 @@ static PyMethodDef Scintilla_methods[] = {
873
893
"Begins grouping a set of edits together as one Undo action." },
874
894
{ "send_message" , (PyCFunction ) Scintilla_send_message , METH_KEYWORDS ,
875
895
"Send a message to the Scintilla widget." },
896
+ { "send_text_message" , (PyCFunction ) Scintilla_send_text_message , METH_KEYWORDS ,
897
+ "Send a text message to the Scintilla widget." },
876
898
{ NULL }
877
899
};
878
900
0 commit comments