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

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

      <tfoot id='G2KeV'></tfoot>

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

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

      Python,Kivy,“AssertionError: None is not callable"按

      Python, Kivy, quot;AssertionError: None is not callablequot; Error on function call by button(Python,Kivy,“AssertionError: None is not callable按鈕調(diào)用函數(shù)時(shí)出錯(cuò))
        <tbody id='qlZmY'></tbody>
      • <bdo id='qlZmY'></bdo><ul id='qlZmY'></ul>
        <legend id='qlZmY'><style id='qlZmY'><dir id='qlZmY'><q id='qlZmY'></q></dir></style></legend>

          1. <small id='qlZmY'></small><noframes id='qlZmY'>

              <i id='qlZmY'><tr id='qlZmY'><dt id='qlZmY'><q id='qlZmY'><span id='qlZmY'><b id='qlZmY'><form id='qlZmY'><ins id='qlZmY'></ins><ul id='qlZmY'></ul><sub id='qlZmY'></sub></form><legend id='qlZmY'></legend><bdo id='qlZmY'><pre id='qlZmY'><center id='qlZmY'></center></pre></bdo></b><th id='qlZmY'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='qlZmY'><tfoot id='qlZmY'></tfoot><dl id='qlZmY'><fieldset id='qlZmY'></fieldset></dl></div>
                <tfoot id='qlZmY'></tfoot>
              • 本文介紹了Python,Kivy,“AssertionError: None is not callable"按鈕調(diào)用函數(shù)時(shí)出錯(cuò)的處理方法,對(duì)大家解決問(wèn)題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)吧!

                問(wèn)題描述

                所以我想使用此代碼在按下按鈕時(shí)調(diào)用函數(shù):

                So I whant to use this code to call a function on a button press:

                botao_ok.bind(on_press=f_adicionar_socios(txt_n_socio.text,txt_nome.text,txt_filho_de.text,txt_filho_e_de.text,txt_data_nas.text,txt_tipo_ID.text,txt_num_ID.text,txt_NIF.text,txt_morada_rua.text,txt_morada_localidade.text,txt_codigo_postal.text,txt_tel_fixo.text,txt_telemovel.text,txt_email.text,txt_tipo_socio.text,txt_data_admicao.text,txt_zona.text,txt_actividade.text,txt_actividade_de.text,txt_actividade_ate.text,txt_observacoes.text))
                

                但為了簡(jiǎn)單起見(jiàn),我只需要解決這個(gè)問(wèn)題:

                But to keep it simple, I only need to solve this problem:

                #My Function
                def teste_(nome):
                    print nome
                #Button
                botao_ok.bind(on_press=teste_('Ola'))
                # Button is inside a Class MYApp
                

                它給出了錯(cuò)誤:AssertionError: None is not callable

                and it gives the error: AssertionError: None is not callable

                我已經(jīng)嘗試了所有我強(qiáng)硬的方法但無(wú)法解決這個(gè)問(wèn)題......謝謝

                Ive tryied everything I tough off and can't solve this... Thank you

                推薦答案

                當(dāng)你編寫(xiě) teste_('Ola') 函數(shù)運(yùn)行并返回 None

                When you write teste_('Ola') the function runs and returns None

                所以當(dāng)你寫(xiě)的時(shí)候

                botao_ok.bind(on_press=teste_('Ola'))
                

                它實(shí)際上被設(shè)置為:

                botao_ok.bind(on_press=None)
                

                簡(jiǎn)而言之,這是導(dǎo)致您的問(wèn)題的原因.

                Which in short is causing your problem.

                為了讓它調(diào)用 teste_('Ola') 當(dāng)按鈕被按下時(shí),你可以使用 lambda 函數(shù):

                In order to get it to call teste_('Ola') When the button is pressed, you could use a lambda function:

                botao_ok.bind(on_press=lambda x:teste_('Ola'))
                

                這篇關(guān)于Python,Kivy,“AssertionError: None is not callable"按鈕調(diào)用函數(shù)時(shí)出錯(cuò)的文章就介紹到這了,希望我們推薦的答案對(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)更改角色顏色)

                  <tfoot id='5TLP5'></tfoot>

                  • <bdo id='5TLP5'></bdo><ul id='5TLP5'></ul>
                    <legend id='5TLP5'><style id='5TLP5'><dir id='5TLP5'><q id='5TLP5'></q></dir></style></legend>

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

                        <tbody id='5TLP5'></tbody>
                    1. <i id='5TLP5'><tr id='5TLP5'><dt id='5TLP5'><q id='5TLP5'><span id='5TLP5'><b id='5TLP5'><form id='5TLP5'><ins id='5TLP5'></ins><ul id='5TLP5'></ul><sub id='5TLP5'></sub></form><legend id='5TLP5'></legend><bdo id='5TLP5'><pre id='5TLP5'><center id='5TLP5'></center></pre></bdo></b><th id='5TLP5'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='5TLP5'><tfoot id='5TLP5'></tfoot><dl id='5TLP5'><fieldset id='5TLP5'></fieldset></dl></div>
                          主站蜘蛛池模板: 久久成人免费 | 97超碰人人 | 亚洲欧美日韩国产综合 | 久久久综合精品 | 一区二区高清在线观看 | 日韩在线视频网址 | 天堂色| 男女污污动态图 | 久久国产欧美日韩精品 | 精品美女 | 99九九久久| 亚洲日产精品 | 成人深夜福利在线观看 | 国产欧美精品一区二区色综合朱莉 | 国产色片| 成人精品一区二区 | av免费网站在线观看 | 亚洲综合在线视频 | 99久久亚洲 | 亚洲精品www久久久久久广东 | 欧美激情网站 | 韩日在线观看视频 | 亚洲a一区 | 偷拍自拍网址 | 日韩福利视频 | 欧美久| 免费观看黄 | 久久精品久久综合 | 91偷拍精品一区二区三区 | 国产激情精品一区二区三区 | 91久久| 成人视屏在线观看 | 成人福利在线视频 | 成人综合视频在线观看 | 亚洲成人一级片 | 亚洲综合大片69999 | 欧美激情一区二区 | 亚洲男人网 | 国产精品一区二区欧美黑人喷潮水 | 欧美人妇做爰xxxⅹ性高电影 | 极情综合网 |