Easygui 输出到easygui 对话?

Easygui output to easygui dialogue?

如何将 easygui 输出到 easygui 对话框,而不是调用 x.py 的终端。

如果我从终端 运行 我的 python 脚本,easygui 对话框出现并工作,但输出显示在终端而不是 easygui。

需要将结果从预先声明的变量传递到 easygui 语法中。例如...

somemsg = "Some message"
sometitle = "Some title"
someresult = "Some result or text to include in easygui frame"

easygui.textbox(msg=somemsg, title=sometitle, text=someresult)
easygui.msgbox('hello world', title='hello world', ok_button = 'yes')

这是一种输出 easygui 消息的方法

from easygui import *

name = "josh"
image = "gfg.png"
message = ("hello, my name is",name)

msgbox(message)
textbox(message)
input = buttonbox("message",image = image,choices=("hello","goodbye"))

我根本不需要使用任何其他 easygui 框,除了 enterbox。

msgbox 输出一条简单的小消息

文本框用于较大的输出

按钮框提供输入选项以响应输出。它还允许输出图像。