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

    1. <small id='4fvPN'></small><noframes id='4fvPN'>

      • <bdo id='4fvPN'></bdo><ul id='4fvPN'></ul>

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

      1. Kivy:如何在等待顯示另一個小部件時顯示一個小部

        Kivy: how to display a widget while waiting for another one to be displayed (both called from a same event)(Kivy:如何在等待顯示另一個小部件時顯示一個小部件(都從同一個事件調用)) - IT屋-程序員軟件開發技術分
        1. <small id='eZrVG'></small><noframes id='eZrVG'>

              <tbody id='eZrVG'></tbody>

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

                <i id='eZrVG'><tr id='eZrVG'><dt id='eZrVG'><q id='eZrVG'><span id='eZrVG'><b id='eZrVG'><form id='eZrVG'><ins id='eZrVG'></ins><ul id='eZrVG'></ul><sub id='eZrVG'></sub></form><legend id='eZrVG'></legend><bdo id='eZrVG'><pre id='eZrVG'><center id='eZrVG'></center></pre></bdo></b><th id='eZrVG'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='eZrVG'><tfoot id='eZrVG'></tfoot><dl id='eZrVG'><fieldset id='eZrVG'></fieldset></dl></div>
                <tfoot id='eZrVG'></tfoot>
                  <legend id='eZrVG'><style id='eZrVG'><dir id='eZrVG'><q id='eZrVG'></q></dir></style></legend>
                1. 本文介紹了Kivy:如何在等待顯示另一個小部件時顯示一個小部件(都從同一個事件調用)的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  單擊確定按鈕"時,我的 kivy 應用程序檢索有時包含 100 多個文件夾的列表,并顯示每個文件夾 4 列和 1 行的 GridLayout.每行有 3 個可滾動標簽和 1 個復選框.這個 GridLayout 有時需要將近 12 秒才能生成,所以我想同時顯示一些東西(標簽、圖像......).

                  When an "OK button" is clicking, my kivy app retrieves a list of sometimes 100+ folders and displays a GridLayout with 4 columns and 1 row per folder. Each row has 3 scrollable labels and 1 checkbox. This GridLayout sometimes takes close to 12 sec to be generated so I would like to display something (a label, an image...) in the meantime.

                  嘗試 1: 我的確定按鈕"調用 def DisplayTable.我試圖簡單地在 DisplayTable 的開頭添加 self.add_widget(Label_when_waiting) (所以在任何處理或生成 GridLayout 之前)但 Label_when_waiting 僅在 GridLayout 時顯示顯示.

                  Attempt 1: My "Ok button" calls a def DisplayTable. I tried to simply add self.add_widget(Label_when_waiting) right at the beginning of DisplayTable (so before any processing or generating the GridLayout) but the Label_when_waiting is displayed only when GridLayout is displayed.

                  嘗試2:我試圖將def DisplayTable分成兩個def,Diplay_Label_when_waiting(由確定按鈕"調用的那個)和DisplayTable:

                  Attempt 2: I tried to separate def DisplayTable into two def, Diplay_Label_when_waiting(the one called by the "OK button") and DisplayTable:

                  def Diplay_Label_when_waiting(self, *args):
                      self.add_widget(Label_when_waiting)
                      DisplayTable(self, *args)
                  

                  但這里又是 Label_when_waiting 僅在顯示 GridLayout 時才顯示.

                  But here again, Label_when_waiting is displayed only when GridLayout is displayed.

                  那么我如何在 GridLayout 之前顯示 Label_when_waiting 知道兩個顯示都必須由確定按鈕"觸發

                  So how can I display Label_when_waiting before GridLayout knowing that both displays have to be triggered by the "Ok button"

                  推薦答案

                  使用Clock.schedule_once在標簽顯示后顯示Grid:

                  Use Clock.schedule_once to display the Grid after the label is shown:

                  def Diplay_Label_when_waiting(self, *args):
                      self.add_widget(Label_when_waiting)
                      Clock.schedule_once(lambda dt: DisplayTable(self, *args), 0)
                  

                  您也可以使用 kivyoav 中的 delayable(免責聲明 - 我是作者...)

                  You can also use delayable from kivyoav (DISCLAIMER - I'm the author ...)

                  from kivyoav.delayed import delayable
                  
                  @delayable
                  def Diplay_Label_when_waiting(self, *args):
                      self.add_widget(Label_when_waiting)
                      yield 0.0 # delay of 0ms , will cause the UI to update...
                      DisplayTable(self, *args)
                  

                  這篇關于Kivy:如何在等待顯示另一個小部件時顯示一個小部件(都從同一個事件調用)的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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='SMVru'></tbody>
                  1. <legend id='SMVru'><style id='SMVru'><dir id='SMVru'><q id='SMVru'></q></dir></style></legend>

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

                        <bdo id='SMVru'></bdo><ul id='SMVru'></ul>
                          <tfoot id='SMVru'></tfoot>
                        • <small id='SMVru'></small><noframes id='SMVru'>

                          1. 主站蜘蛛池模板: 日日网| 国产成人免费视频网站视频社区 | 精品久久一区 | 欧美一区二区三区在线观看 | 欧美精品二区 | 日韩免费电影 | 国产一区二区观看 | 免费观看黄色一级片 | 国产精品久久久久久久久久免费看 | 国产福利在线 | 天天爽夜夜爽精品视频婷婷 | 精品欧美乱码久久久久久 | 激情欧美一区二区三区中文字幕 | 国产一区二区三区久久久久久久久 | 伊人一二三 | 伊人网综合在线观看 | 国内精品久久久久久久影视简单 | 亚洲国产精品久久久 | 在线视频国产一区 | 欧美一区在线视频 | 精品视频一区二区三区在线观看 | 一区二区中文 | 日本一区视频在线观看 | 亚洲电影一区二区三区 | 九九热在线视频免费观看 | 一区二区三区在线看 | 国产亚洲精品久久19p | 国产精品久久久久久久久免费樱桃 | 日韩av免费在线观看 | 国产精品污www在线观看 | 国产精品射 | 国产精品麻 | 亚洲三区在线观看 | 日韩欧美亚洲 | 国产精品久久久久久久久久久久午夜片 | 蜜桃视频在线观看免费视频网站www | av三级| 成人精品视频在线观看 | 亚洲精品在线免费观看视频 | 日韩在线成人 | 男女精品网站 |