Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/vb.net/16.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
可以为在wxPython中使用AppendCheckItem创建的MenuItem设置初始检查状态吗?_Wxpython - Fatal编程技术网

可以为在wxPython中使用AppendCheckItem创建的MenuItem设置初始检查状态吗?

可以为在wxPython中使用AppendCheckItem创建的MenuItem设置初始检查状态吗?,wxpython,Wxpython,默认情况下,复选按钮样式的菜单项未选中,对于单选按钮样式,设置组中的第一项 但是,我可以在创建菜单项时将其设置为选中吗?更具体地说,我可以在创建检查项的语句中这样做,例如在以下行中: m_count = self.menu2c.AppendCheckItem(3, "Count") 一个人可以做(按照上面的例子) 我想这可能是最好的办法,但我觉得应该有一个单一的班轮某处 m_count = self.menu2c.AppendCheckItem(3, "Count") m_count.Chec

默认情况下,复选按钮样式的菜单项未选中,对于单选按钮样式,设置组中的第一项

但是,我可以在创建菜单项时将其设置为选中吗?更具体地说,我可以在创建检查项的语句中这样做,例如在以下行中:

m_count = self.menu2c.AppendCheckItem(3, "Count")
一个人可以做(按照上面的例子)

我想这可能是最好的办法,但我觉得应该有一个单一的班轮某处

m_count = self.menu2c.AppendCheckItem(3, "Count")
m_count.Check()