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

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

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

        • <bdo id='zwpwQ'></bdo><ul id='zwpwQ'></ul>
      1. Kivy 布局高度以适应子小部件的高度

        Kivy Layout height to adapt to child widgets#39;s height(Kivy 布局高度以适应子小部件的高度)
        • <bdo id='Ax2uG'></bdo><ul id='Ax2uG'></ul>
              <tbody id='Ax2uG'></tbody>
            <i id='Ax2uG'><tr id='Ax2uG'><dt id='Ax2uG'><q id='Ax2uG'><span id='Ax2uG'><b id='Ax2uG'><form id='Ax2uG'><ins id='Ax2uG'></ins><ul id='Ax2uG'></ul><sub id='Ax2uG'></sub></form><legend id='Ax2uG'></legend><bdo id='Ax2uG'><pre id='Ax2uG'><center id='Ax2uG'></center></pre></bdo></b><th id='Ax2uG'></th></span></q></dt></tr></i><div id='Ax2uG'><tfoot id='Ax2uG'></tfoot><dl id='Ax2uG'><fieldset id='Ax2uG'></fieldset></dl></div>

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

                <tfoot id='Ax2uG'></tfoot>
                <legend id='Ax2uG'><style id='Ax2uG'><dir id='Ax2uG'><q id='Ax2uG'></q></dir></style></legend>
                • 本文介绍了Kivy 布局高度以适应子小部件的高度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我想创建一个布局,其中我有类似于 BoxLayout 的东西,让我能够在我的布局中创建行",并且在每个行"中我想使用另一种 BoxLayout 中的东西来创建列".

                  I want to create a layout where I have something similar to a BoxLayout to give me the ability to create "rows" in my layout, and in each "row" I want to use something in the sorts of another BoxLayout to create "columns".

                  列不需要均匀分布.例如,我想创建一个 BoxLayout,其中一列是方形图像,另一列占据剩余的可用宽度.

                  The columns don't need to be evenly distributed. For example, I want to create a BoxLayout with one column with a square image, and another occupying the rest of the available width.

                  在我的 gist 上查看代码和屏幕截图:https://gist.github.com/MichaelGradek/e5c50038b947352d9e79

                  See code and screenshot on my gist: https://gist.github.com/MichaelGradek/e5c50038b947352d9e79

                  我已经在上面的代码中完成了基本结构,但除此之外,我希望 BoxLayout 的高度适应孩子的高度.

                  I have the basic structure done in the code above, but in addition, I want the BoxLayout's height to adapt to the height of the children.

                  实现这一目标的最佳方法是什么?

                  What would be the best approach to achieve this?

                  谢谢!

                  推荐答案

                  不要使用 BoxLayout,使用 height: self.minimum_height 的 GridLayout,并手动设置尺寸(每个子小部件的 size_hint_y: Noneheight: some_number).

                  Don't use a BoxLayout, use a GridLayout with height: self.minimum_height, and set a manual size (size_hint_y: None and height: some_number) for each child widget.

                  这篇关于Kivy 布局高度以适应子小部件的高度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  groupby multiple coords along a single dimension in xarray(在xarray中按单个维度的多个坐标分组)
                  Group by and Sum in Pandas without losing columns(Pandas中的GROUP BY AND SUM不丢失列)
                  Group by + New Column + Grab value former row based on conditionals(GROUP BY+新列+基于条件的前一行抓取值)
                  Groupby and interpolate in Pandas(PANDA中的Groupby算法和插值算法)
                  Pandas - Group Rows based on a column and replace NaN with non-null values(PANAS-基于列对行进行分组,并将NaN替换为非空值)
                  Grouping pandas DataFrame by 10 minute intervals(按10分钟间隔对 pandas 数据帧进行分组)
                    <legend id='wlxqM'><style id='wlxqM'><dir id='wlxqM'><q id='wlxqM'></q></dir></style></legend>
                      <tbody id='wlxqM'></tbody>
                    <i id='wlxqM'><tr id='wlxqM'><dt id='wlxqM'><q id='wlxqM'><span id='wlxqM'><b id='wlxqM'><form id='wlxqM'><ins id='wlxqM'></ins><ul id='wlxqM'></ul><sub id='wlxqM'></sub></form><legend id='wlxqM'></legend><bdo id='wlxqM'><pre id='wlxqM'><center id='wlxqM'></center></pre></bdo></b><th id='wlxqM'></th></span></q></dt></tr></i><div id='wlxqM'><tfoot id='wlxqM'></tfoot><dl id='wlxqM'><fieldset id='wlxqM'></fieldset></dl></div>

                          • <bdo id='wlxqM'></bdo><ul id='wlxqM'></ul>

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

                          • <tfoot id='wlxqM'></tfoot>