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

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

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

    1. <tfoot id='To4uP'></tfoot>

        Kivy你好世界不工作

        时间:2023-10-09
            <tbody id='QTGv0'></tbody>

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

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

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

                1. 本文介绍了Kivy你好世界不工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  我正在尝试让 kivy 在我的 Ubuntu 系统上运行.我按照他们的 wesbite 中的说明进行操作.

                  I am trying to make kivy work on my Ubuntu system. I followed the instructions from their wesbite.

                  但是当我尝试从他们的网站运行以下 hello world 代码时:

                  But when I try to run the following hello world code from their website:

                  import kivy
                  kivy.require('1.5.1') # replace with your current kivy version !
                  
                  from kivy.app import App
                  from kivy.uix.button import Button
                  
                  class MyApp(App):
                      def build(self):
                          return Button(text='Hello World')
                  
                  if __name__ == '__main__':
                      MyApp().run()
                  

                  我收到以下错误:

                  [INFO   ] Kivy v1.5.1
                  [INFO   ] [Logger      ] Record log in /home/malik/.kivy/logs/kivy_13-03-08_6.txt
                  [INFO   ] [Factory     ] 137 symbols loaded
                  [DEBUG  ] [Cache       ] register <kv.lang> with limit=None, timeout=Nones
                  [DEBUG  ] [Cache       ] register <kv.image> with limit=None, timeout=60s
                  [DEBUG  ] [Cache       ] register <kv.atlas> with limit=None, timeout=Nones
                  [DEBUG  ] [Cache       ] register <kv.texture> with limit=1000, timeout=60s
                  [DEBUG  ] [Cache       ] register <kv.shader> with limit=1000, timeout=3600s
                  [INFO   ] [Text        ] using <pygame> as text provider
                  [DEBUG  ] [App         ] Loading kv <./my.kv>
                  [DEBUG  ] [App         ] kv <./my.kv> not found
                  [INFO   ] [Window      ] using <pygame> as window provider
                    X Error of failed request:  BadRequest (invalid request code or no such operation)
                      Major opcode of failed request:  138 (ATIFGLEXTENSION)
                      Minor opcode of failed request:  66 ()
                      Serial number of failed request:  14
                      Current serial number in output stream:  14
                  

                  跟我的显卡有关系吗?我正在使用 ATI Mobility Radeon HD 5400 显卡.

                  Has it something to do with my graphics card? I am using ATI Mobility Radeon HD 5400 graphics card.

                  推荐答案

                  终于通过将 Ubuntu 更新到 12.10 让它工作了 似乎问题出在图形驱动程序上.现在该示例按预期工作.谢谢琼杰和qua-non.

                  Finally got it working by updating Ubuntu to 12.10 Seems like the issue was the graphics driver. Now the example is working as expected. Thanks Qiongjie and qua-non.

                  这篇关于Kivy你好世界不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:在使用 PyInstaller --onefile 打包 kivy 时包含 .kv/.js 下一篇:在 Kivy for Python 中按下按钮时更新标签的文本

                  相关文章

                  最新文章

                2. <tfoot id='wQZ9M'></tfoot>
                    <bdo id='wQZ9M'></bdo><ul id='wQZ9M'></ul>

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

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

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