GtkRadioButton 设置活动和停用
我的 C/gtk+ 应用程序中有 4 个 gtkradiobuttons。但他们都很活跃。
我的代码:
radio_button1 = gtk_radio_button_new_with_label(radio_list, "radio1");
radio_button2 = gtk_radio_button_new_with_label(radio_list, "radio2");
radio_button3 = gtk_radio_button_new_with_label(radio_list, "radio3");
radio_button4 = gtk_radio_button_new_with_label(radio_list, "radio4");
我读了 man 但没有找到解决方案,如何才能使一次只有一个单选按钮处于活动状态。
谢谢
I have 4 gtkradiobuttons in my C/gtk+ application. But all of them are active.
My code:
radio_button1 = gtk_radio_button_new_with_label(radio_list, "radio1");
radio_button2 = gtk_radio_button_new_with_label(radio_list, "radio2");
radio_button3 = gtk_radio_button_new_with_label(radio_list, "radio3");
radio_button4 = gtk_radio_button_new_with_label(radio_list, "radio4");
I read man but not found solution, How can make that in one time only one radiobutton be active.
Thank you
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
来自 Gtk 文档:
From the Gtk Docs: