Repository navigation
Support combobox for multenterbox, multpasswordbox and support multiple password input
EasyGUI Release Update Notes
We are excited to announce the latest update of EasyGUI, bringing several enhancements to improve your user experience.
New Features
- Dropdown List Support in Multienterbox, and Multpasswordbox
- Enterbox, multienterbox, and multpasswordbox now support dropdown lists. This addition provides users with a more convenient way to select values from a predefined set, reducing input errors and enhancing usability. For example, when using multenterbox to input a specific option, users can now choose from a dropdown list instead of typing, which is especially useful when there are a limited number of options.
- Multi - User Password Box in Multpassword for Password Confirmation
- The multpassword function now features a multi - user password box for password confirmation. This is beneficial in scenarios where multiple users need to enter and confirm their passwords, such as in shared account setups or group - based authentication systems. It streamlines the password - handling process and improves security by allowing each user to enter and confirm their own password separately.
We hope these updates will make EasyGUI more powerful and user - friendly. Thank you for using EasyGUI!
EasyGUI发布更新说明
我们很高兴地宣布EasyGUI的最新更新,带来了多项增强功能,以提升您的用户体验。
新功能
- multenterbox、multpasswordbox支持下拉列表
- multenterbox和multpasswordbox现在支持下拉列表。这一新增功能为用户提供了从预定义集合中选择值的更便捷方式,减少输入错误并增强了可用性。例如,在使用multenterbox输入特定选项时,用户现在可以从下拉列表中进行选择,而无需手动输入,在选项数量有限的情况下尤为实用。
- multpassword中支持多人密码框用于密码确认
- multpassword函数现在具有用于密码确认的多人密码框。在多个用户需要输入并确认其密码的场景中,例如共享账户设置或基于群组的身份验证系统,这一功能非常有用。它简化了密码处理流程,并通过允许每个用户分别输入和确认自己的密码来提高安全性。
我们希望这些更新能让EasyGUI更强大、更易用。感谢您使用EasyGUI!
Usage
-
multienterbox, multpasswordbox下拉列表使用:
import easygui as eg def callback_func(mb): print(f"用户输入了:{mb.values}") mb.stop() fields = ["姓名:", "年龄:", {"性别:":["男", "女"]}, {"文化程度:":["小学", "初中", "高中", "大学"]}] values = ["小飞棍", "28", "男", "小学"] eg.multenterbox(msg="Enter your name and age", title="多字段输入窗口(改进版)", fields=fields, values=values, callback=callback_func)
说明:在
fields参数中,设置某成员为字典,键名为标签文字、键值为列表,保存下拉选项。 -
multpasswordbox使用多密码输入:
import easygui as eg ret = eg.multpasswordbox(msg="输入账号名和密码", title="注册信息", fields=["Name", "Password(*)", "Confirm password(*)"], values=["", "", ""])说明:只要
fields参数中的成员使用“(*)”结尾,则认为该参数是密码