1

在我的 Fedora 机器上运行 python idle 时,有时键盘会突然冻结,我必须再次重新启动 idle。

所以我尝试了“idle -n”,并收到如下错误消息:

"
Gdk-ERROR **: The program 'newsift.py' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadWindow (invalid Window parameter)'.
  (Details: serial 15131 error_code 3 request_code 15 minor_code 0)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)
Trace/breakpoint trap (core dumped)
[root@poodle tmp]# idle -n

Warning (from warnings module):
  File "/usr/lib64/python2.7/site-packages/gtk-2.0/gtk/__init__.py", line 122
    set_interactive(1)
RuntimeWarning: PyOS_InputHook is not available for interactive use of PyGTK
"

谁能告诉我发生了什么?我该如何解决这个问题?非常感谢!

4

0 回答 0