如何使用easygui在同一窗口中添加ynbox和messagebox [英] How to add ynbox and messagebox in same window using easygui
本文介绍了如何使用easygui在同一窗口中添加ynbox和messagebox的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我运行以下代码:
import easygui
easygui.ynbox('Shall I continue?', 'Title', ('Yes', 'No'))
easygui.msgbox('This is a basic message box.', 'Title Goes Here');
但是我为ynbox和msgbox获得了不同的窗口,我希望bot将它们都包含在同一窗口中
but i get different window for ynbox and msgbox ,i want bot both of them to be included in same window
推荐答案
只需做一个ynbox
:
import easygui
easygui.ynbox('Question', 'Title', ('Yes', 'No'))
或执行buttonbox
:
import os
easygui.buttonbox('Message', 'Title', choices=(['Button[1]', 'Button[2]' , 'Button[3]']))
这篇关于如何使用easygui在同一窗口中添加ynbox和messagebox的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文