From 983b2aec00c0da230cf4d0dbcdcae2ff81f97bc4 Mon Sep 17 00:00:00 2001 From: 0chen Date: Wed, 16 Jun 2021 23:30:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=A4=9A=E5=A4=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 感谢#33#32#31 close #33 close #31 --- src/main/Core.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/Core.kt b/src/main/Core.kt index c049aa5..4691086 100644 --- a/src/main/Core.kt +++ b/src/main/Core.kt @@ -839,9 +839,10 @@ class Core : JFrame() { val item=JMenuItem(filename) item.actionCommand=filename item.addActionListener { arg0 -> - val input=textArea.text + val input=Py.newStringOrUnicode(textArea.text) val props=Properties() - props["python.home"]=System.getProperty("user.dir")+"/Lib" + //props["python.home"]=System.getProperty("user.dir")+"/Lib" + props["python.home"]=System.getProperty("user.dir") props["python.console.encoding"]="UTF-8" props["python.security.respectJavaAccessibility"]="false" props["python.import.site"]="false"