如何将SimpleGUI与Python 2.7和3.0 Shell集成 [英] How to integrate SimpleGUI with Python 2.7 and 3.0 shell

查看:81
本文介绍了如何将SimpleGUI与Python 2.7和3.0 Shell集成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在从Coursera学习Python.在本课程中,他们使用 CodeSkulptor 上的 SimpleGUI 模块.谁能告诉我如何将SimpleGUI与python 2.7和3.0 shell集成在一起?

I am learning Python from Coursera. In this course they use SimpleGUI module on CodeSkulptor. Can anyone tell me how to integrate SimpleGUI with python 2.7 and 3.0 shell?

推荐答案

来自Darren Gallagher的Coursera论坛

From the coursera forums by Darren Gallagher

从CodeSkulptor文档中:

From the CodeSkulptor Documentation:

http://www.codeskulptor.org/docs.html

"......实现了python 2.6的子集... CodeSkulptor的Python从某一方面来看不是子集...在JavaScript之上实现..."

"... implements a subset of Python 2.6...CodeSkulptor's Python is not a subset in one respect...Implemented on top of JavaScript..."

众所周知,我不认为CodeSkulptor/SimpleGUI是Python模块.它写在Javascript之上,以允许用户输出到其Web浏览器,而不是其桌面和/或解释器窗口.

I don't think that CodeSkulptor / SimpleGUI is a Python Module, as we know it. It is written on top of Javascript to allow the user output to their web browser, as opposed to their desktop and/or interpreter window.

我在Python中找到/使用的与SimpleGUI最相似的模块是Pygame-在语法和显示方面.要使一个项目运行"还需要一些时间,但是绝对值得花时间在上面.我相信我们在接下来的几周内使用SimpleGUI将会学到的东西将是非常可移植的.

The module I have found / used in Python that is most similar to SimpleGUI is Pygame - in both syntax and display. It requires a little more to get a project 'running' but is definitely worth investing time in. I'm sure what we will learn in the coming weeks with SimpleGUI will be very transferable.

完整的线程可以在这里找到 工作人员能否为我们提供SIMPLEGUI模块? (需要注册该课程才能查看链接)

The full thread can be found here Can the staff give us the SIMPLEGUI module? (Note need to be enrolled to the course to view the link)

此后,创建了一个名为SimpleGUICS2Pygame的python程序包,以使用Pygame运行CodeSkulptor代码, 我还没有尝试过它,但是可以找到它 此处 >

A python package called SimpleGUICS2Pygame has since been created to run CodeSkulptor code using Pygame, I haven't tried it myself yet but it can be found here

这篇关于如何将SimpleGUI与Python 2.7和3.0 Shell集成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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