<bdo id='8BKlp'></bdo><ul id='8BKlp'></ul>

  1. <i id='8BKlp'><tr id='8BKlp'><dt id='8BKlp'><q id='8BKlp'><span id='8BKlp'><b id='8BKlp'><form id='8BKlp'><ins id='8BKlp'></ins><ul id='8BKlp'></ul><sub id='8BKlp'></sub></form><legend id='8BKlp'></legend><bdo id='8BKlp'><pre id='8BKlp'><center id='8BKlp'></center></pre></bdo></b><th id='8BKlp'></th></span></q></dt></tr></i><div id='8BKlp'><tfoot id='8BKlp'></tfoot><dl id='8BKlp'><fieldset id='8BKlp'></fieldset></dl></div>
  2. <small id='8BKlp'></small><noframes id='8BKlp'>

      <tfoot id='8BKlp'></tfoot>
    1. <legend id='8BKlp'><style id='8BKlp'><dir id='8BKlp'><q id='8BKlp'></q></dir></style></legend>

      如何链接一组切换按钮,如单选按钮?

      How can I link a set of toggle buttons like radio buttons?(如何链接一组切换按钮,如单选按钮?)
        • <small id='wkMiK'></small><noframes id='wkMiK'>

          • <bdo id='wkMiK'></bdo><ul id='wkMiK'></ul>
            <legend id='wkMiK'><style id='wkMiK'><dir id='wkMiK'><q id='wkMiK'></q></dir></style></legend>
          • <i id='wkMiK'><tr id='wkMiK'><dt id='wkMiK'><q id='wkMiK'><span id='wkMiK'><b id='wkMiK'><form id='wkMiK'><ins id='wkMiK'></ins><ul id='wkMiK'></ul><sub id='wkMiK'></sub></form><legend id='wkMiK'></legend><bdo id='wkMiK'><pre id='wkMiK'><center id='wkMiK'></center></pre></bdo></b><th id='wkMiK'></th></span></q></dt></tr></i><div id='wkMiK'><tfoot id='wkMiK'></tfoot><dl id='wkMiK'><fieldset id='wkMiK'></fieldset></dl></div>

              <tbody id='wkMiK'></tbody>

            <tfoot id='wkMiK'></tfoot>

                本文介绍了如何链接一组切换按钮,如单选按钮?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我正在使用 Python 3 和 Gtk 的 gobject 自省.我怎样才能将多个切换按钮链接在一起,以便它们的行为类似于选项卡或单选按钮 - 例如默认选择一个,当另一个被 clicked 时,之前的 active 一个被取消选择.

                I am using Python 3 with gobject introspection for Gtk. How can I have more than one toggle button linked together so they behave similar to tabs or radiobuttons - e.g. one is selected by default, and when another is clicked the previously active one is de-selected.

                我曾尝试使用 set_sensetive,但它应用的小部件会变灰.

                I have tried using set_sensetive, but that greys out the widget that it is applied on.

                推荐答案

                使用 set_active()(或 props.active).或者,您可以创建一些 Gtk.RadioButton 小部件并将 draw_indicator 属性设置为 False.在后一种情况下,您可以以正常方式创建单选组,无需自定义处理.

                Use set_active() (or props.active). Alternatively, you can create some Gtk.RadioButton widgets and set draw_indicator property to False. In the latter case you can create radio groups in normal way, without custom handling.

                这篇关于如何链接一组切换按钮,如单选按钮?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                Adding config modes to Plotly.Py offline - modebar(将配置模式添加到 Plotly.Py 离线 - 模式栏)
                Plotly: How to style a plotly figure so that it doesn#39;t display gaps for missing dates?(Plotly:如何设置绘图图形的样式,使其不显示缺失日期的间隙?)
                python save plotly plot to local file and insert into html(python将绘图保存到本地文件并插入到html中)
                Plotly: What color cycle does plotly express follow?(情节:情节表达遵循什么颜色循环?)
                How to save plotly express plot into a html or static image file?(如何将情节表达图保存到 html 或静态图像文件中?)
                Plotly: How to make a line plot from a pandas dataframe with a long or wide format?(Plotly:如何使用长格式或宽格式的 pandas 数据框制作线图?)

                    <i id='dmoa9'><tr id='dmoa9'><dt id='dmoa9'><q id='dmoa9'><span id='dmoa9'><b id='dmoa9'><form id='dmoa9'><ins id='dmoa9'></ins><ul id='dmoa9'></ul><sub id='dmoa9'></sub></form><legend id='dmoa9'></legend><bdo id='dmoa9'><pre id='dmoa9'><center id='dmoa9'></center></pre></bdo></b><th id='dmoa9'></th></span></q></dt></tr></i><div id='dmoa9'><tfoot id='dmoa9'></tfoot><dl id='dmoa9'><fieldset id='dmoa9'></fieldset></dl></div>
                      <bdo id='dmoa9'></bdo><ul id='dmoa9'></ul>

                      <legend id='dmoa9'><style id='dmoa9'><dir id='dmoa9'><q id='dmoa9'></q></dir></style></legend>
                          <tfoot id='dmoa9'></tfoot>

                          <small id='dmoa9'></small><noframes id='dmoa9'>

                            <tbody id='dmoa9'></tbody>