简体   繁体   English

pyqtdeploy GUI无法启动

[英]pyqtdeploy GUI does not start

I have installed python3.4, Qt5.5 and PyQt5 on Ubuntu 14.04. 我已经在Ubuntu 14.04上安装了python3.4,Qt5.5和PyQt5。 Pyqtdeploy was installed with Pyqtdeploy已安装

pip3 install pyqtdeploy

Now if I try to make a new project file and start the gui with: 现在,如果我尝试制作一个新的项目文件并使用以下命令启动gui:

pyqtdeploy newproject.pdy

I get a couple of these error messages (all the same): 我收到了一些以下错误消息(都一样):

(python3:26052): Gtk-CRITICAL **: IA__gtk_widget_style_get: assertion 'GTK_IS_WIDGET (widget)' failed

And I see a window frame of the pyqtdeploy application but it is empty (transparent) and the compiz process uses a lot of cpu resources (kind of freezing the os) 而且我看到了pyqtdeploy应用程序的窗口框架,但是它是空的(透明的),并且compiz进程使用了​​大量的cpu资源(有点像冻结了os)

The Ubuntu 14.04 is installed in virtualbox on a windows 7 host. Ubuntu 14.04安装在Windows 7主机上的virtualbox中。

What am I doing wrong? 我究竟做错了什么?

Got it working now, the error seemed to be that pyqtdeploy which is a python/PyQt5 application used the default styletheme (think its gtk+) which somehow causes problems. 现在可以正常工作了,错误似乎是作为python / PyQt5应用程序的pyqtdeploy使用了默认的styletheme(认为是gtk +),从而导致了问题。 I set the fusion style in the file main_gui.py (in source code of pyqtdeploy): 我在文件main_gui.py中设置了融合样式(在pyqtdeploy的源代码中):

from PyQt5.QtWidgets import QStyleFactory app.setStyle(QStyleFactory.create("Fusion"))

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

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