如何删除初始 wx.RadioBox 选择? [英] How to remove initial wx.RadioBox selection?

查看:25
本文介绍了如何删除初始 wx.RadioBox 选择?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有以下代码:

myList =['a','b']
rb=wx.RadioBox(self.panel, -1, "Options :", (0, 0), wx.DefaultSize,myList, 2, wx.RA_SPECIFY_COLS)

当它第一次呈现时,我看到已经做出了选择,我该如何更改代码,当这个radibox第一次呈现时,没有选择任何选项.

When it renders first time I see that a choice has been made how can I change the code that when this radibox rendered first time there are no option has been chosen.

推荐答案

收音机的使用框 暗示,有一个包含两个或多个相互排斥的选项的列表,用户必须只选择一个选项."

The use of a radio box implies, "there is a list of two or more options that are mutually exclusive and the user must select exactly one choice."

单选框永远不会以没有选择的状态存在.如果不是这种情况,请不要使用收音机框.

The radio box never exists in a state with no choice made. If that's not the case, then don't use a radio box.

如果您不希望任何当前单选框选项被选择为默认值,为不适用"或无选择"添加另一个选项.

If you don't want any of the current radio box options to be selected as default, add another option for "N/A" or "No choice".

这篇关于如何删除初始 wx.RadioBox 选择?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆