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

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

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

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

      1. 將屏幕與 kivy 中的 GridLayout 類相關聯

        Associating Screens with GridLayout classes in kivy(將屏幕與 kivy 中的 GridLayout 類相關聯)
            • <bdo id='g5cZ7'></bdo><ul id='g5cZ7'></ul>
              <i id='g5cZ7'><tr id='g5cZ7'><dt id='g5cZ7'><q id='g5cZ7'><span id='g5cZ7'><b id='g5cZ7'><form id='g5cZ7'><ins id='g5cZ7'></ins><ul id='g5cZ7'></ul><sub id='g5cZ7'></sub></form><legend id='g5cZ7'></legend><bdo id='g5cZ7'><pre id='g5cZ7'><center id='g5cZ7'></center></pre></bdo></b><th id='g5cZ7'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='g5cZ7'><tfoot id='g5cZ7'></tfoot><dl id='g5cZ7'><fieldset id='g5cZ7'></fieldset></dl></div>

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

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

                <tbody id='g5cZ7'></tbody>

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

                • 本文介紹了將屏幕與 kivy 中的 GridLayout 類相關聯的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我創建了一個 ScreenManager,并為該 ScreenManager 創建了幾個 Screen 實例.

                  I've created a ScreenManager, and created several Screen instances for that ScreenManager.

                  我希望每個屏幕都顯示一個 GridLayout 類.例如,假設您有:

                  I'd like each Screen to display a GridLayout class. For example, let's say you have:

                  class MainScreen(Screen):
                     ...
                  
                  class MainLayout(GridLayout):
                     ...
                  

                  當 MainScreen 是活動屏幕時,我希望顯示 MainLayout.

                  When MainScreen is the active screen, I'd like MainLayout to be shown.

                  有沒有辦法純粹在 python 中做到這一點(即沒有標記)?謝謝.

                  Is there a way to do this purely in python (i.e. without markup)? Thank you.

                  推薦答案

                  有沒有辦法純粹在 python 中做到這一點(即沒有標記)?謝謝.

                  Is there a way to do this purely in python (i.e. without markup)? Thank you.

                  您永遠不需要使用 kivy 語言(我假設這就是您所說的標記的意思),但強烈建議盡可能使用它,因為它使很多事情變得更容易.

                  You never need to use kivy language (I assume that's what you mean by markup), though it's highly recommended where possible because it makes lots of stuff easier.

                  不過,要真正回答您的問題,您只需將 gridlayout 小部件添加到屏幕小部件,例如

                  Nonetheless, to actually answer your question, all you have to do is add your gridlayout widget to your screen widget, something like

                  mainscreen = MainScreen()
                  mainlayout = MainLayout()
                  mainscreen.add_widget(mainlayout)
                  

                  然后,當您在屏幕管理器中將當前屏幕設置為主屏幕時,您應該會看到 GridLayout.

                  Then when you set the current screen in your screenmanager to be mainscreen, you should see the GridLayout.

                  如果不清楚,這通常是您將小部件添加到其他小部件的方式.當你看到一個 kv 語言的例子時,比如

                  In case it's unclear, this is in general the way you add widgets to other widgets. When you see an example in kv language like

                  <MyScreen>:
                       GridLayout:
                           ...
                  

                  ...最終,它被翻譯成與上面的示例代碼非常相似的內容 - 創建了一個 MyScreen 實例,并使用 add_widget 向其中添加了一個 GridLayout.

                  ...ultimately that gets translated to something much like the above example code - an instance of MyScreen is created and a GridLayout is added to it with add_widget.

                  這篇關于將屏幕與 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 - 自動更改角色顏色)

                    <tbody id='H6SWf'></tbody>
                  • <legend id='H6SWf'><style id='H6SWf'><dir id='H6SWf'><q id='H6SWf'></q></dir></style></legend>

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

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

                            <tfoot id='H6SWf'></tfoot>
                            <i id='H6SWf'><tr id='H6SWf'><dt id='H6SWf'><q id='H6SWf'><span id='H6SWf'><b id='H6SWf'><form id='H6SWf'><ins id='H6SWf'></ins><ul id='H6SWf'></ul><sub id='H6SWf'></sub></form><legend id='H6SWf'></legend><bdo id='H6SWf'><pre id='H6SWf'><center id='H6SWf'></center></pre></bdo></b><th id='H6SWf'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='H6SWf'><tfoot id='H6SWf'></tfoot><dl id='H6SWf'><fieldset id='H6SWf'></fieldset></dl></div>
                          1. 主站蜘蛛池模板: 色花av| 99视频免费看 | 亚洲中午字幕 | 正在播放国产精品 | xxx视频| 国产高清视频在线观看播放 | 激情五月婷婷丁香 | 国产不卡视频 | 九九久视频 | 日韩在线视频一区 | 久久久男人的天堂 | 91在线精品一区二区 | 成人在线日韩 | 久久久久国产精品人 | 成人免费视频网站在线观看 | 黄色一级电影免费观看 | 欧美精品区| 91精品国产色综合久久 | 国产四区 | a级免费黄色片 | 亚洲国产自产 | av在线免费观看网站 | 在线观看的av | 中文字幕第一页在线 | 日韩一区二区在线看 | 国产做a爱片久久毛片 | 97人人草 | www.三级 | 日韩欧美一区在线 | 精品视频一区二区三区 | 一区二区三区中文字幕 | 婷婷精品| 欧美无乱码久久久免费午夜一区 | 午夜寂寞影院列表 | 成人伊人网| 国产精品区二区三区日本 | 91大神在线资源观看无广告 | 91 中文字幕 | 日韩精品在线免费 | 欧美天堂 | 在线欧美视频 |