How to add ynbox and messagebox in same window using easygui

喜欢而已 提交于 2020-01-16 18:26:27

问题


I run following code :

import easygui
easygui.ynbox('Shall I continue?', 'Title', ('Yes', 'No'))
easygui.msgbox('This is a basic message box.', 'Title Goes Here');

but i get different window for ynbox and msgbox ,i want bot both of them to be included in same window


回答1:


Just do single ynbox:

import easygui
easygui.ynbox('Question', 'Title', ('Yes', 'No'))

Or do buttonbox:

import os
easygui.buttonbox('Message', 'Title', choices=(['Button[1]', 'Button[2]' , 'Button[3]']))


来源:https://stackoverflow.com/questions/52053103/how-to-add-ynbox-and-messagebox-in-same-window-using-easygui

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!