Skip to content

Commit

Permalink
更新
Browse files Browse the repository at this point in the history
close #32
  • Loading branch information
0Chencc committed Jun 16, 2021
1 parent 983b2ae commit 1bf2c51
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/Core.kt
Original file line number Diff line number Diff line change
Expand Up @@ -872,26 +872,26 @@ class Core : JFrame() {
dialog[1]=JOptionPane.showInputDialog("Please input a "+dialog[1])
dialog[2]=JOptionPane.showInputDialog("Please input a "+dialog[2])
f=interpreter.get("main", PyFunction::class.java) as PyFunction
res=f.__call__(PyString(input), PyString(dialog[0]), PyString(dialog[1]), PyString(dialog[2]))
res=f.__call__(input, PyString(dialog[0]), PyString(dialog[1]), PyString(dialog[2]))
textArea.text=res!!.toString()
}
2 -> {
dialog[0]=JOptionPane.showInputDialog("Please input a "+dialog[0])
dialog[1]=JOptionPane.showInputDialog("Please input a "+dialog[1])
f=interpreter.get("main", PyFunction::class.java) as PyFunction
res=f.__call__(PyString(input), PyString(dialog[0]), PyString(dialog[1]))
res=f.__call__(input, PyString(dialog[0]), PyString(dialog[1]))
textArea.text=res!!.toString()
}
1 -> {
dialog[0]=JOptionPane.showInputDialog("Please input a "+dialog[0])
println(dialog[0])
f=interpreter.get("main", PyFunction::class.java) as PyFunction
res=f.__call__(PyString(input), PyString(dialog[0]))
res=f.__call__(input, PyString(dialog[0]))
textArea.text=res!!.toString()
}
else -> {
f=interpreter.get("main", PyFunction::class.java) as PyFunction
res=f.__call__(PyString(input))
res=f.__call__(input)
textArea.text=res!!.toString()
}
}
Expand Down

0 comments on commit 1bf2c51

Please sign in to comment.