mirror of
https://github.com/smallevilbeast/ntchat.git
synced 2026-07-02 03:16:21 +08:00
更新send_text_ui例子
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user