PyGtk 程序在 Windows 上没有响应 [英] PyGtk Program is not responding on Windows

查看:75
本文介绍了PyGtk 程序在 Windows 上没有响应的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚设法让 py2exe 在 Windows 虚拟机上工作,但偶然发现了另一个问题,在我在那台机器上安装 GTK、Pango、Gobject 等后我没有立即遇到:当我启动 Python 脚本时,窗口出现但它立即停止响应.如果我打开一个 python 解释器并输入:

I just managed to get py2exe work on a Windows Virtual Machine but stumbled on another problem which I didn't have right after I installed GTK, Pango, Gobject etc. on that machine: When I launch a Python Script the window appears but it immediately stops responding. This happens too if I open a python interpreter and type:

import gtk
w = gtk.Window()
w.show()

我还不能发布任何图片,但这里是截图的链接:http://i.stack.imgur.com/3RJ0n.png

I'm not allowed to post any images yet, but here's the link to a screenshot: http://i.stack.imgur.com/3RJ0n.png

这对我来说是个问题,就好像我用 py2exe 创建了一个可执行文件一样,我在执行程序时得到了相同的结果.

This is a problem for me, as if I create an executable with py2exe I get the same result when I execute the program.

感谢您的帮助以及您花时间帮助我!:)

Thank you for your help and for your time spent to help me! :)

解决了!似乎安装 ActivePython 安装 GTK 运行时、PyCairo、PyObject、PyGtk 以管理员身份与 Windows Xp Service Pack 2 的兼容模式解决了这个问题.感谢 adw 的帮助和建议!

推荐答案

解决了!似乎安装 ActivePython 安装 GTK 运行时、PyCairo、PyObject、PyGtk 以管理员身份与 Windows Xp Service Pack 2 的兼容模式解决了这个问题.感谢 adw 的帮助和建议!

这篇关于PyGtk 程序在 Windows 上没有响应的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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