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

      <tfoot id='xALb3'></tfoot>

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

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

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

        Kivy 的 TextInput 小部件中的 Tab/Enter(和其他擊鍵)處

        Tab/Enter (and other keystrokes) handling in Kivy#39;s TextInput widgets(Kivy 的 TextInput 小部件中的 Tab/Enter(和其他擊鍵)處理)
      1. <tfoot id='l7eYq'></tfoot>

            <legend id='l7eYq'><style id='l7eYq'><dir id='l7eYq'><q id='l7eYq'></q></dir></style></legend>
          • <small id='l7eYq'></small><noframes id='l7eYq'>

              <tbody id='l7eYq'></tbody>

                <bdo id='l7eYq'></bdo><ul id='l7eYq'></ul>
                  <i id='l7eYq'><tr id='l7eYq'><dt id='l7eYq'><q id='l7eYq'><span id='l7eYq'><b id='l7eYq'><form id='l7eYq'><ins id='l7eYq'></ins><ul id='l7eYq'></ul><sub id='l7eYq'></sub></form><legend id='l7eYq'></legend><bdo id='l7eYq'><pre id='l7eYq'><center id='l7eYq'></center></pre></bdo></b><th id='l7eYq'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='l7eYq'><tfoot id='l7eYq'></tfoot><dl id='l7eYq'><fieldset id='l7eYq'></fieldset></dl></div>
                  本文介紹了Kivy 的 TextInput 小部件中的 Tab/Enter(和其他擊鍵)處理的處理方法,對(duì)大家解決問(wèn)題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)吧!

                  問(wèn)題描述

                  我正在使用 Kivy 框架編寫一個(gè)應(yīng)用程序,我偶然發(fā)現(xiàn)了一個(gè)小而煩人的問(wèn)題:我不知道如何處理文本字段中的 Tab/Enter/Arrow 鍵,以便按下任一其中會(huì)派發(fā)一個(gè)事件,例如.將焦點(diǎn)(跳轉(zhuǎn))到另一個(gè) TextInput 或啟動(dòng)類似 send_form()

                  I'm writing an app using Kivy framework and I stumbled upon a minor but annoying problem: I don't know how to handle Tab/Enter/Arrow keys in text fields so that pressing either of them would dispatch an event, eg. switch the focus (jump) to another TextInput or launch something like send_form()

                  誰(shuí)能解釋一下這個(gè)問(wèn)題?

                  Could anyone please shed some light on this issue?

                  推薦答案

                  正如 Daniel Kinsman 在他的評(píng)論中所建議的,您可以繼承 TextInput,添加上一個(gè)"和下一個(gè)"ObjectProperties 以支持選項(xiàng)卡(易于在 kv 中使用引用其他小部件),并以不同的方式處理鍵盤事件.目前沒(méi)有開(kāi)箱即用的支持,但如果您想進(jìn)行此類修改,請(qǐng)向我們發(fā)送功能請(qǐng)求或在 freenode 上的#kivy 中討論它.

                  As suggested by Daniel Kinsman in his comment, you could subclass TextInput, add "previous" and "next" ObjectProperties for tab support (easy to set in kv using references to other widgets), and handle the keyboard events differently. There is no out of the box support for this right now, but if you want to work on such modification drop us a feature-request or comme discuss it in #kivy on freenode.

                  https://github.com/kivy/kivy/blob/master/kivy/uix/textinput.py#L1188

                  也許在小部件上添加這樣的支持會(huì)更好,并添加一些焦點(diǎn)邏輯,因此 tab/enter 對(duì)任何可激活的小部件都有影響,并且像滑塊這樣的一些小部件也使用右/左/上/下鍵.

                  Maybe it would be even better to add such support on widget, and add some focus logic, so tab/enter have effects on any activable widget, and some widgets like slider use right/left/up/down keys too.

                  因此,在 Kivy 中還有很多工作要做,如果您有興趣提供幫助,您真的可以更快地實(shí)現(xiàn),我們會(huì)幫助您:)

                  So there is still a lot to do in Kivy about that, and if you are interested in helping, you can really make it happen faster, we'll help you :)

                  這篇關(guān)于Kivy 的 TextInput 小部件中的 Tab/Enter(和其他擊鍵)處理的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

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

                  相關(guān)文檔推薦

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

                      <tbody id='nIQNh'></tbody>
                    • <bdo id='nIQNh'></bdo><ul id='nIQNh'></ul>

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

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

                            <legend id='nIQNh'><style id='nIQNh'><dir id='nIQNh'><q id='nIQNh'></q></dir></style></legend>
                          1. <tfoot id='nIQNh'></tfoot>
                            主站蜘蛛池模板: 久久国产福利 | 亚洲一区二区中文字幕 | 欧美性久久久 | 91亚洲国产| 91黄在线观看 | 中文字幕亚洲视频 | jav成人av免费播放 | 成人av鲁丝片一区二区小说 | 精品一区二区久久久久久久网站 | 国产精品成人国产乱一区 | 国产精品一区二区在线播放 | 国产精品一二三区在线观看 | 欧美黄色大片在线观看 | 国产日韩欧美一区 | 日韩欧美在线观看 | 久久精品中文字幕 | 亚洲自拍偷拍av | 亚洲精品久久久一区二区三区 | 亚洲一区二区三区四区五区中文 | 免费一区 | 2021天天干夜夜爽 | 在线成人免费视频 | 91视频大全 | 99久久精品国产一区二区三区 | 欧美成人激情视频 | 欧美999 | 亚洲欧美综合 | 国产色婷婷精品综合在线手机播放 | 色视频网站在线观看 | 国产91九色| 天天射影院 | 日本久草| 91久久北条麻妃一区二区三区 | 黄页网址在线观看 | 精品日韩一区二区三区av动图 | 日日摸夜夜添夜夜添特色大片 | 91久久国产综合久久 | 97精品一区二区 | 欧美成人精品一区二区男人看 | 国产一区二区精 | 精品一区二区电影 |