简体   繁体   中英

Python Pyglet application not working in Windows Emacs

I cannot get emacs to evaluate my buffer. I put it into python mode and started the interpreter but Cc Cc does not seem to do anything. I also tried Cc Cl to load the file but after selecting the file nothing happens. Typing directly into the python shell does work.

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.

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.

Update: I am trying to run an application developed with the Pyglet library which creates its own window to display graphics in.

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. 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.

here output arrives in a buffer *Python*, which is not displayed by default unfortunately. Mx list-buffers should mention it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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