python - 如何在 flash 网页上运行 PyQt4?

标签 python pyqt4 flash

我使用这个非常简单的 python 脚本 Problem loading a specific website through Qt Webkit显示网页。它运行良好,但它没有检测到我在 linux x86_64 上安装的 libflashplayer.so(显示 http://www.adobe.com/go/getflash/ URL)。我该怎么做才能运行 Flash 网页? (flash 适用于我所有的经典浏览器)

问候, 人造卫星

最佳答案

您需要显式启用插件:

QWebSettings.globalSettings().setAttribute(QWebSettings.PluginsEnabled, True)

关于python - 如何在 flash 网页上运行 PyQt4?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7198092/

相关文章:

android - 目前在所有安卓设备上播放 youtube 视频的推荐方式

Python 输出重叠

python - 带有 Raspberry Pi 和 Bluemix 的 IoT Python 应用程序 : Cannot turn on/off lights and send message using the button

python - 从数据流运行 tensorflow 模型训练

python - 如何在Python中使用字典代替if语句?

python3-qt4 在 QApplication 构造函数中丢弃 unicode 字符串中的非 ascii 字符

python - PyQt4:按包含图标的列对 QTableWidget 进行排序

javascript - 使用 javascript 从 flash 捕获冒泡键事件?

html - 如何让 swf 的高度随内容扩展?

python - 这是从 df 获取一堆索引排列的最佳方法