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

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

        <bdo id='dkmaR'></bdo><ul id='dkmaR'></ul>

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

    3. 是否可以在 kivy GridLayout 中為特定小部件指定特定

      Is it possible in kivy GridLayout to specify a particular grid for a particular widget(是否可以在 kivy GridLayout 中為特定小部件指定特定網格)
        <tbody id='SvvcF'></tbody>
    4. <legend id='SvvcF'><style id='SvvcF'><dir id='SvvcF'><q id='SvvcF'></q></dir></style></legend>

      <tfoot id='SvvcF'></tfoot>

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

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

            • <bdo id='SvvcF'></bdo><ul id='SvvcF'></ul>
              1. 本文介紹了是否可以在 kivy GridLayout 中為特定小部件指定特定網格的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                問題描述

                我一直在使用 PyQt,我知道如果我們使用QGridLayout 在 PyQt 中,我們可以在特定的網格中指定特定的小部件.

                I have been using PyQt since a long time and i know that if we use QGridLayout in PyQt we can specify a particular widget at a particular grid.

                例如

                grid = QtGui.QGridLayout()
                grid.setSpacing(10)
                grid.addWidget(self.Banner,0,0,1,4,QtCore.Qt.AlignTop | QtCore.Qt.AlignCenter)
                grid.addWidget(self.RefNo,1,0,1,2)
                grid.addWidget(self.RefNoText,1,2,1,2)
                

                其中 self.bannerself.Refnoself.RefNoText 是一些小部件.在這種情況下,我們可以指定小部件,然后指定行號.對于它和列號.為了它.Kivy 有可能做到這一點嗎?

                where self.banner, self.Refno and self.RefNoText are some widgets. As in this case we can specify widget, then row no. For it and column no. For it. Is it possible in Kivy to do that?

                我在 Kivy 中嘗試過,但似乎在 Kivy 中我們必須在開始時指定行和列,然后在添加它們自己排列的小部件時?

                I tried in Kivy but it seems that in Kivy we have to specify rows and columns in starting and then on adding widgets they are arranged by themselves?

                有什么想法嗎?

                推薦答案

                在 Kivy 中,當我們將小部件添加到 GridLayout 時,我們只需指定行、列或兩者.

                In Kivy, when we add widgets to a GridLayout, we just specify either the rows, columns or both.

                然后我們將定位留給 Kivy,它會根據我們的規范自動填充它.

                We then leave the positioning to Kivy which automatically fills it as per our specifications.

                查看 GridLayout 的官方文檔

                有一個非常好的 .gif 文件,它解釋了小部件在 GridLayout 中的排列方式.

                There is a really nice .gif which explains how widgets are arranged in a GridLayout.

                所以,您的問題的答案是否定的.我們無法指定要放置小部件的位置,但是,我們所能做的就是以正確定位的方式將小部件添加到 GridLayout.

                So, the answer to your question is NO. We cannot specify where we want to place a widget, however, all that we can do is add widgets to the GridLayout in such a manner that it positions it correctly.

                最初,我發現很難讓小部件占用比一個單元格更多的空間,如下所示:

                Initially, I found difficulties in making a widget occupy more space than once cell, like this:

                <2 cells><1cell>
                +--------+-----+
                |Big     |     |
                |Widget  |     |
                +--------+-----+
                |   |    |     |
                |   |    |     |
                +---+----+-----+
                

                但是,這可以通過將整行設為 BoxLayout 來解決.像這樣:

                However, this can be solved making the entire row a BoxLayout. Like so:

                <1 big BoxLayout>
                +--------+-----+
                |Big     |     |
                |Widget  |     |
                +--------+-----+
                |   |    |     |
                |   |    |     |
                +---+----+-----+
                <1 more BoxLayout>
                

                這樣,每個 BoxLayout 只占用一個單元格.可以通過 BoxLayout 自定義小部件的間距,然后放置在 Grid 中.

                This way, each BoxLayout occupies only one cell. The spacing of the widgets can be customized with the BoxLayout and then be placed in the Grid.

                下面是如何在 Kv 中做到這一點:

                Here's how to do that in Kv:

                <MyGrid>
                    cols=1 # Actually, you can just use a vertical box
                
                    BoxLayout:
                
                        BigWidget:
                            # Properties
                        SmallWidget:
                            # Properties
                
                    BoxLayout:
                
                        SmallWidget:
                            # Properties
                        SmallWidget:
                            # Properties
                        SmallWidget:
                            # Properties
                

                Kivy 會自動用 1 列填充 Grid

                Kivy will automatically fill the Grid with 1 column

                因此,通過嵌套布局,您可以獲得所需的輸出.

                So, by nesting layouts you can get the desired output.

                這篇關于是否可以在 kivy 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 - 自動更改角色顏色)
                <legend id='PCGSz'><style id='PCGSz'><dir id='PCGSz'><q id='PCGSz'></q></dir></style></legend>
                  • <tfoot id='PCGSz'></tfoot>

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

                          <tbody id='PCGSz'></tbody>
                        <i id='PCGSz'><tr id='PCGSz'><dt id='PCGSz'><q id='PCGSz'><span id='PCGSz'><b id='PCGSz'><form id='PCGSz'><ins id='PCGSz'></ins><ul id='PCGSz'></ul><sub id='PCGSz'></sub></form><legend id='PCGSz'></legend><bdo id='PCGSz'><pre id='PCGSz'><center id='PCGSz'></center></pre></bdo></b><th id='PCGSz'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='PCGSz'><tfoot id='PCGSz'></tfoot><dl id='PCGSz'><fieldset id='PCGSz'></fieldset></dl></div>
                        • <bdo id='PCGSz'></bdo><ul id='PCGSz'></ul>
                          主站蜘蛛池模板: av电影一区二区 | 四虎影院免费在线 | 蜜臀久久99精品久久久久久宅男 | 亚洲色欲色欲www | 亚洲综合在线视频 | 欧美在线天堂 | 午夜视频免费在线观看 | 一区二区三区高清不卡 | 欧美精品在线一区二区三区 | 一区二区小视频 | 日韩欧美在线视频 | 一区二区激情 | www日韩高清 | 免费黄色在线 | 91在线精品一区二区 | 国产97色 | 国产精品夜夜夜一区二区三区尤 | 精品久久久久久亚洲精品 | 精品国产一区二区三区性色 | 毛片站| 99久久视频 | 99亚洲 | 免费观看毛片 | 久久精品国产久精国产 | 黄色网址大全在线观看 | 一区二区免费在线观看 | 日韩一区二区三区在线 | 久久国产精99精产国高潮 | 免费看淫片 | 欧美精品片 | 久久激情视频 | 蜜桃av一区二区三区 | 日韩高清电影 | 国产乱码精品一区二区三区忘忧草 | 日韩中文字幕2019 | 亚洲精品高清视频 | 人妖av| 一区二区三区在线观看视频 | 精品欧美乱码久久久久久1区2区 | 日韩精品免费在线观看 | 国产婷婷精品av在线 |