久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

    <bdo id='hvI66'></bdo><ul id='hvI66'></ul>
<legend id='hvI66'><style id='hvI66'><dir id='hvI66'><q id='hvI66'></q></dir></style></legend>

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

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

        <tfoot id='hvI66'></tfoot>
      1. Kivy:BoxLayout 與 GridLayout

        Kivy: BoxLayout vs. GridLayout(Kivy:BoxLayout 與 GridLayout)

              <legend id='ATp8y'><style id='ATp8y'><dir id='ATp8y'><q id='ATp8y'></q></dir></style></legend>

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

                <tbody id='ATp8y'></tbody>
                <bdo id='ATp8y'></bdo><ul id='ATp8y'></ul>
                <i id='ATp8y'><tr id='ATp8y'><dt id='ATp8y'><q id='ATp8y'><span id='ATp8y'><b id='ATp8y'><form id='ATp8y'><ins id='ATp8y'></ins><ul id='ATp8y'></ul><sub id='ATp8y'></sub></form><legend id='ATp8y'></legend><bdo id='ATp8y'><pre id='ATp8y'><center id='ATp8y'></center></pre></bdo></b><th id='ATp8y'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='ATp8y'><tfoot id='ATp8y'></tfoot><dl id='ATp8y'><fieldset id='ATp8y'></fieldset></dl></div>
                  <tfoot id='ATp8y'></tfoot>
                  本文介紹了Kivy:BoxLayout 與 GridLayout的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  BoxLayout(orientation='vertical')GridLayout(cols=1):

                  他們都做同樣的事情,不是嗎?有理由選擇其中一個嗎?

                  They both do the same thing, no? Is there a reason to choose one over the other?

                  推薦答案

                  區別在于大小和位置.

                  一般來說,GridLayout (cols: 1) 總是將元素保持在一列中,而有使用 BoxLayout (orientation: 'vertical') 時更靈活地組織單個小部件.

                  In general, GridLayout (cols: 1) is always going to keep the elements in one column, whereas there is more flexibility to organize individual widgets when you use BoxLayout (orientation: 'vertical').

                  這是一個非常簡單的示例,說明您可以使用 BoxLayout 進行操作,因為它支持 pos_hintsizesize_hint(以及其他,例如 center_xxyright,-注意它們也依賴于BoxLayoutverticalhorizo??ntal 方向會影響各個小部件:

                  Here is a very simple example of something you can do with BoxLayout because it honours pos_hint, size and size_hint (and others such as center_x, x, y, right, - notice that they also depend on the vertical or horizontal orientation of the BoxLayout) which affects individual widgets:

                  <Test@BoxLayout>:
                      orientation: 'vertical'
                      Button:
                          text: 'a'
                          size_hint: None, None
                          size: 100,50
                          pos_hint: { 'center_x' : .5 }
                      Button:
                          text: 'b'
                  

                  這是 200x200 屏幕中的輸出:

                  This is the output in a 200x200 screen:

                  如果您嘗試做同樣的事情,但改用 GridLayout,那么您會得到:

                  If you attempt to do the same but using GridLayout instead, then you get this:

                  最后,GridLayout 有一些屬性來控制列的大小:

                  Finally, GridLayout has some properties to control the size of the column:

                  • col_default_width:為所有列的默認寬度
                  • col_width:每列的寬度列表(在此沒有用處案例,因為我們只有一個)
                  • col_force_default:它將忽略單個小部件的任何現有 size_hintsize 并強制列寬
                  • minimum_width:所以列不會縮小太多
                  • col_default_width: for the default width of all the columns
                  • col_width: a list of widths for each column (not useful in this case since we have just one)
                  • col_force_default: which will ignore any existing size_hint or size for individual widgets and force the column width
                  • minimum_width: so the column not shrink too much

                  這篇關于Kivy:BoxLayout 與 GridLayout的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  How to make a discord bot that gives roles in Python?(如何制作一個在 Python 中提供角色的不和諧機器人?)
                  Discord bot isn#39;t responding to commands(Discord 機器人沒有響應命令)
                  Can you Get the quot;About mequot; feature on Discord bot#39;s? (Discord.py)(你能得到“關于我嗎?Discord 機器人的功能?(不和諧.py))
                  message.channel.id Discord PY(message.channel.id Discord PY)
                  How do I host my discord.py bot on heroku?(如何在 heroku 上托管我的 discord.py 機器人?)
                  discord.py - Automaticaly Change an Role Color(discord.py - 自動更改角色顏色)

                    1. <i id='5nqga'><tr id='5nqga'><dt id='5nqga'><q id='5nqga'><span id='5nqga'><b id='5nqga'><form id='5nqga'><ins id='5nqga'></ins><ul id='5nqga'></ul><sub id='5nqga'></sub></form><legend id='5nqga'></legend><bdo id='5nqga'><pre id='5nqga'><center id='5nqga'></center></pre></bdo></b><th id='5nqga'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='5nqga'><tfoot id='5nqga'></tfoot><dl id='5nqga'><fieldset id='5nqga'></fieldset></dl></div>
                        <bdo id='5nqga'></bdo><ul id='5nqga'></ul>

                        <small id='5nqga'></small><noframes id='5nqga'>

                      • <tfoot id='5nqga'></tfoot>

                        • <legend id='5nqga'><style id='5nqga'><dir id='5nqga'><q id='5nqga'></q></dir></style></legend>

                              <tbody id='5nqga'></tbody>
                          • 主站蜘蛛池模板: 亚洲精品久久久久久久久久久久久 | 国产精品一区二区三 | 国产成人免费视频网站高清观看视频 | 久久草视频 | 日韩毛片在线视频 | 99精品久久 | 精品一区国产 | 国产精品精品久久久 | 国产精品一区二区免费 | 国产精品久久国产愉拍 | 日本公妇乱淫xxxⅹ 国产在线不卡 | 色天天综合 | 国产片网站 | 在线观看成人小视频 | 日韩中文字幕一区 | 在线免费观看a级片 | 日韩一区二区在线播放 | 中国一级特黄真人毛片 | 日韩精品在线观看免费 | 99久久婷婷国产综合精品电影 | 成人三级影院 | 国产二区精品视频 | 欧美炮房 | 国产精品我不卡 | 亚洲+变态+欧美+另类+精品 | 久久亚洲一区 | 精品免费国产一区二区三区四区 | 亚州精品天堂中文字幕 | 国产精品久久久久久久久免费高清 | 国产98色在线 | 久久机热 | 日韩一区二区三区在线 | 亚洲欧洲精品一区 | 亚洲精品一区中文字幕乱码 | a国产视频 | 综合精品久久久 | 狼人伊人影院 | 成人精品一区二区三区中文字幕 | 亚洲一区高清 | 亚洲视频免费在线观看 | 成人精品一区 |