我尝试使用默认Atlas并使用以下代码:
from kivy.app import App
from kivy.atlas import Atlas
class TestApp(App):
def build(self):
atlas = Atlas('defaulttheme.atlas')
if __name__ == '__main__':
TestApp().run()
我收到了消息
[INFO] [Logger] Record log in /Users/Prueba/.kivy/logs/kivy_16-09-16_3.txt
[INFO] [Kivy] v1.9.1
[INFO] [Python] v3.5.2 |Anaconda 4.1.1 (x86_64)| (default, Jul 2 2016, 17:52:12)
[GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)]
[INFO] [Factory] 179 symbols loaded
[INFO] [Image] Providers: img_tex, img_imageio, img_dds, img_gif, img_sdl2, img_pil (img_ffpyplayer ignored)
**Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)**
请注意,我已将 defaulttheme.atlas
和 defaulttheme-0.png
移至我正在运行的脚本所在的文件夹中。
谢谢!