如何使easygui输出到easygui对话,而不是调用x.py的终端。
如果我从终端运行python脚本,将会出现easygui对话框并工作,但是输出将显示在终端中,而不是easygui。
发布于 2018-11-14 02:36:32
easygui.msgbox('hello world', title='hello world', ok_button = 'yes')这是一种输出易用性味精的方法。
发布于 2017-10-19 08:54:51
结果需要从预先声明的变量传递到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)发布于 2020-11-25 11:55:45
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"))除了“肠箱”之外,我从来没有使用过任何其他的易趣盒子。
msgbox输出一条简单、小的消息。
文本框用于较大的输出。
buttonbox提供了响应输出的输入选项。它还允许输出图像。
https://stackoverflow.com/questions/46390137
复制相似问题