为什么我突然有了弹跳的Python火箭? [英] Why do I suddenly have a bouncing Python rocket?

查看:192
本文介绍了为什么我突然有了弹跳的Python火箭?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近,我对在OS X(10.10; Python 2.7.6)上运行的一些matplotlib代码进行了简单的更改,注释掉了一行设置我使用的后端

Recently, I made a simple change to some matplotlib code I run on OS X (10.10; Python 2.7.6), commenting out a single line that set the backend I use

#matplotlib.use('agg')

现在,只要我的代码正在运行,我就会在停靠栏中看到一个可弹跳的Python图标,该图标不显示UI,仅提供 Force Quit ... 作为命令:

Now, as long as my code is running, I get a bouncing Python icon in my dock, that presents no UI and only offers Force Quit... as an command:

通常,在没有任何用户界面的情况下继续弹跳的停靠图标是一件坏事".为什么我要得到它,这是我应该关注的事情吗?

Generally dock icons that continue bouncing without any UI are a "bad thing". Why am I getting this and is it something I should be concerned about?

推荐答案

不是坏事".当Python与GUI交互时,该图标出现在底座中. Agg 是非交互式的后端.使用agg时,您没有看到该图标,因为没有Python UI交互.

Not a "bad thing". The icon appears in the dock when Python interacts with the GUI. Agg is a non-interactive backend. With agg you did not see the icon since there was no Python UI interaction.

这篇关于为什么我突然有了弹跳的Python火箭?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆