Is there a good Python GUI shell?

2019-04-04 18:23发布

I saw this the other day (scroll all the way down to see some of the clever stuff):

http://www.mono-project.com/docs/tools+libraries/tools/repl/

And wondered whether something like this exists for Python.

So, is there a good Python GUI shell that can do stuff like that C# shell can do?

Edit: Here are links to screenshots from the article, showing what I'm interested in doing.

An example of the type of things I'm interested:

http://www.mono-project.com/archived/images/7/75/GSharpPlot.png

They are able to add hooks to produce GUI elements like the plot, or even do silly things like:

http://www.mono-project.com/archived/images/b/bf/GSharpRenderHandler.png

I don't think this is possible with any of the console shells I've tried (the regular python shell, ipython).

Edit: I'm not looking for an IDE. If you look at the link, you'll get an idea of what I want.

8条回答
等我变得足够好
2楼-- · 2019-04-04 18:54

DreamPie is my personal favorite. It doesn't appear to be any more restrictive than CSharpRepl. For example, the graph drawing example can be done if matplotlib is installed. There is an example screenshot to this effect on DreamPie's web site (http://dreampie.sourceforge.net/).

Bpython is similar, and I like it better. But it is only available on Linux as binary.

查看更多
走好不送
3楼-- · 2019-04-04 18:55

I think that a combination of Pycrust with matplotlib can do exactly what you need. Pycrust is part of the wxPython installation, and matplotlib should be insalled separately. Both are simple to install in about 5 minutes.

Read this about integrating matplotlib with Pycrust to produce dynamic plots like the ones in the link you posted.

查看更多
登录 后发表回答