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

    <tfoot id='jKjzs'></tfoot>

      <bdo id='jKjzs'></bdo><ul id='jKjzs'></ul>
      1. <legend id='jKjzs'><style id='jKjzs'><dir id='jKjzs'><q id='jKjzs'></q></dir></style></legend>

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

      2. 你可以在 python tkinter 中更改小部件的父级吗?

        Can you change a widget#39;s parent in python tkinter?(你可以在 python tkinter 中更改小部件的父级吗?)
          • <tfoot id='mI96o'></tfoot>

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

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

                1. <legend id='mI96o'><style id='mI96o'><dir id='mI96o'><q id='mI96o'></q></dir></style></legend>

                  本文介绍了你可以在 python tkinter 中更改小部件的父级吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  有没有办法改变一个小部件(在这种情况下是 ttk.frame)的父级?我在小部件 .config 中找不到任何要使用的关键字.这在 python tkinter 中是不可能的吗?我想要的功能是在我的 tkk.notebook 小部件中获取我当前的框架,当我双击选项卡时,将所有内容都放在选项卡的框架中,移动到它自己单独的 TopLevel 窗口.这样,用户可以在处理另一个选项卡时对该选项卡进行视觉参考.如果没有我要询问的框架功能,我想不出任何其他方式来实现这一点.也许如果有人能绕过这个问题,我就不需要担心父小部件的功能了.

                  Is there any way to change a widget's (ttk.frame in this case) parent? I can't find any keywords to use in the widgets .config. Is this not possible in python tkinter? What I'd like functionally is to take my current frame in my tkk.notebook widget, and when I double click the tab, to have everything in the frame of the tab, move to it's own separate TopLevel window. This way the user can have a visual reference to that tab while working on another tab. I couldn't think of any other way to have this happen without the frame functionality I'm asking about. Perhaps if anyone can circumvent this issue, I won't need to worry about parent widget capabilities.

                  干杯,克里斯

                  推荐答案

                  An 旧帖 byFredrik Lundh(Tkinter 的作者)建议无法更改小部件的父级.

                  An old post by Fredrik Lundh (the Tkinter author) suggests that it isn't possible to change a widget's parent.

                  这篇关于你可以在 python tkinter 中更改小部件的父级吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  Initialize Multiple Numpy Arrays (Multiple Assignment) - Like MATLAB deal()(初始化多个 Numpy 数组(多重赋值) - 像 MATLAB deal())
                  How to extend Python class init(如何扩展 Python 类初始化)
                  What#39;s the difference between dict() and {}?(dict() 和 {} 有什么区别?)
                  What is a wrapper_descriptor, and why is Foo.__init__() one in this case?(什么是 wrapper_descriptor,为什么 Foo.__init__() 在这种情况下是其中之一?)
                  Initialize list with same bool value(使用相同的布尔值初始化列表)
                  setattr with kwargs, pythonic or not?(setattr 与 kwargs,pythonic 与否?)

                  1. <small id='pYntg'></small><noframes id='pYntg'>

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

                      <tfoot id='pYntg'></tfoot>

                      • <bdo id='pYntg'></bdo><ul id='pYntg'></ul>
                          <tbody id='pYntg'></tbody>
                        <legend id='pYntg'><style id='pYntg'><dir id='pYntg'><q id='pYntg'></q></dir></style></legend>