简体   繁体   English

Pyqt5设计师和Python 3.5

[英]Pyqt5 designer and Python 3.5

I'm new to coding. 我是编码的新手。 I'm really enjoying it and have worked my way through a number of tutorials for Python 3 and feel the basics are coming along. 我真的非常喜欢它并且已经通过了许多Python 3的教程,并感受到基础知识的出现。 I've now started to think about gui creation. 我现在开始考虑gui创作。 I first started with tkinter but quickly decided that pyqt5 was good for me. 我首先开始使用tkinter,但很快就认定pyqt5对我有好处。 I've started a tutorial that I found from zetcode that is really helping me out. 我已经开始从zetcode中找到一个真正帮助我的教程。

I've now come across something called the pyqt designer which looks like a significant string to my bow.... The only problem is, is that I can't find it on my system. 我现在遇到了一个名为pyqt设计器的东西,它看起来像是我的弓的重要字符串....唯一的问题是,我在我的系统上找不到它。 I can find pyqt designer.dll but nothing that I know how to boot. 我可以找到pyqt designer.dll,但我知道如何启动。 I am running Windows 10, pyqt5 and the newest install of Python 3.5. 我正在运行Windows 10,pyqt5和最新的Python 3.5安装。

I had the same problem. 我有同样的问题。

I fix it be installing additional tools with 我修复它是安装额外的工具

pip install PyQt5-tools pip安装PyQt5工具

Then I located the "designer.exe" executable in C:\\Users\\%USERNAME%\\AppData\\Local\\Programs\\Python\\Python35-32\\Lib\\site-packages\\pyqt5-tools\\designer 然后我在C:\\Users\\%USERNAME%\\AppData\\Local\\Programs\\Python\\Python35-32\\Lib\\site-packages\\pyqt5-tools\\designer “designer.exe”可执行文件

Tools to supplement the official PyQt5 wheels 补充官方PyQt5车轮的工具

If you used one of the Windows binary packages , it should create a PyQt submenu which has a menu item for Qt Designer (amongst other things). 如果您使用了其中一个Windows 二进制包 ,它应该创建一个PyQt子菜单,其中包含Qt Designer的菜单项(以及其他内容)。 Alternatively, you can start it by entering designer in the Run dialog or a Command Prompt window. 或者,您可以通过在“运行”对话框或“命令提示符”窗口中输入designer来启动它。

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

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