更新send_text_ui例子

This commit is contained in:
evilbeast committed 2022-09-23 18:19:54 +08:00
1 parent 89ea755606
commit 734eab020e
3 files changed
+6 -4

No files matched your search

+2 -1
View File
@@ -1,6 +1,6 @@
import xcgui
import ntchat
from xcgui import XApp, XWindow
from xcgui import XApp, XWindow, RunUiThread
class NtChatWindow(XWindow):
@@ -38,6 +38,7 @@ class NtChatWindow(XWindow):
else:
self.wechat_instance.send_text(self.edit_wxid.getText(), self.edit_content.getText())
@RunUiThread()
def on_recv_message(self, wechat, message):
text = self.edit_log.getText()
text += "\n"