简体   繁体   English

Python Pyglet应用程序在Windows Emacs中不起作用

[英]Python Pyglet application not working in Windows Emacs

I cannot get emacs to evaluate my buffer. 我无法获得emacs来评估我的缓冲区。 I put it into python mode and started the interpreter but Cc Cc does not seem to do anything. 我将其置于python模式下并启动了解释器,但Cc Cc似乎无能为力。 I also tried Cc Cl to load the file but after selecting the file nothing happens. 我还尝试了Cc Cl来加载文件,但是选择文件后没有任何反应。 Typing directly into the python shell does work. 直接在python shell中输入即可。

I tried it out in linux and everything worked fine so I know I am using the correct commands and there is no problem with my code. 我在linux上进行了尝试,一切正常,所以我知道我使用的是正确的命令,并且我的代码没有问题。

I am running GNU Emacs 24.2.1 and Python 3.3 on Windows 7. I am new to emacs and I like it so far, but unless I can get the shell working I will need to switch to a different editor. 我正在Windows 7上运行GNU Emacs 24.2.1和Python 3.3。到目前为止,我还是emacs的新手,但我仍然很喜欢它,但是除非我能使外壳正常工作,否则我将需要切换到其他编辑器。

Update: I am trying to run an application developed with the Pyglet library which creates its own window to display graphics in. 更新:我正在尝试运行使用Pyglet库开发的应用程序,该应用程序创建自己的窗口以显示图形。

Update #2: So if I try to evaluate the buffer and then go to the python buffer and stop compilation and then evaluate it again then it works. 更新#2:因此,如果我尝试评估缓冲区,然后转到python缓冲区并停止编译,然后再次对其进行评估,那么它将起作用。 This is obviously not ideal. 这显然是不理想的。

Also maybe related, any errors or exceptions will not show up in the shell unless I go into the shell and hit enter. 也可能相关,除非我进入shell并按Enter,否则任何错误或异常都不会显示在shell中。

here output arrives in a buffer *Python*, which is not displayed by default unfortunately. 在这里,输出到达缓冲区* Python *,不幸的是默认情况下不显示该缓冲区。 Mx list-buffers should mention it. Mx列表缓冲区应该提到它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM