mine2chow / pyqt-integration Goto Github PK
View Code? Open in Web Editor NEWPYQT integration for vscode
License: MIT License
PYQT integration for vscode
License: MIT License
It's not possible use vscode variables to specific a command. For example:
${workspace}/.venv/bin/pyuic5
Could you include commands concerning UI translation management please?
Issue Type: Bug
No Name 'QFont' in module 'PyQt5.QtGui
Extension version: 0.2.0
VS Code version: Code 1.44.0 (2aae1f26c72891c399f860409176fe435a154b13, 2020-04-07T23:31:18.860Z)
OS version: Windows_NT x64 10.0.18363
Item | Value |
---|---|
CPUs | AMD Ryzen 5 2500U with Radeon Vega Mobile Gfx (8 x 1996) |
GPU Status | 2d_canvas: enabled flash_3d: enabled flash_stage3d: enabled flash_stage3d_baseline: enabled gpu_compositing: enabled multiple_raster_threads: enabled_on oop_rasterization: disabled_off protected_video_decode: unavailable_off rasterization: enabled skia_renderer: disabled_off_ok video_decode: enabled viz_display_compositor: enabled_on viz_hit_test_surface_layer: disabled_off_ok webgl: enabled webgl2: enabled |
Load (avg) | undefined |
Memory (System) | 14.95GB (7.58GB free) |
Process Argv | |
Screen Reader | no |
VM | 0% |
Hi use new pyqt5-tools and info show bellow.
C:\Users\dell>pip show pyqt5-tools
Name: pyqt5-tools
Version: 5.15.4.3.2
Summary: PyQt Designer and QML plugins
Home-page: https://github.com/altendky/pyqt-tools
Author: Kyle Altendorf
Author-email: sda@fstab.net
License: GPLv3
Location: d:\python38\lib\site-packages
Requires: python-dotenv, click, pyqt5, pyqt5-plugins
Required-by:
New version designer need run it terminal as pyqt5-tools designer
to open it.
"An extension help you coding PYQT in vsocde"
Issue Type: Bug
No Name 'Qt' in module 'PyQt5.QtCore'
Extension version: 0.2.0
VS Code version: Code 1.44.0 (2aae1f26c72891c399f860409176fe435a154b13, 2020-04-07T23:31:18.860Z)
OS version: Windows_NT x64 10.0.18363
Item | Value |
---|---|
CPUs | AMD Ryzen 5 2500U with Radeon Vega Mobile Gfx (8 x 1996) |
GPU Status | 2d_canvas: enabled flash_3d: enabled flash_stage3d: enabled flash_stage3d_baseline: enabled gpu_compositing: enabled multiple_raster_threads: enabled_on oop_rasterization: disabled_off protected_video_decode: unavailable_off rasterization: enabled skia_renderer: disabled_off_ok video_decode: enabled viz_display_compositor: enabled_on viz_hit_test_surface_layer: disabled_off_ok webgl: enabled webgl2: enabled |
Load (avg) | undefined |
Memory (System) | 14.95GB (7.33GB free) |
Process Argv | |
Screen Reader | no |
VM | 0% |
I install the extension in offline mode with the command "code --install-extension xx.vsix",however the extension cannot be activated and I cannot find any settings about the extension.Could you please help me fix the problem.Thx
Hi, I'm using Windows and installed PyQt5 with 'pip install PyQt5' .But I can't
import it in py project . I get " ModuleNotFoundError: No module named 'PyQt5' " error How can I solve this.
Qt Designer is now often used within the PyQt5-tools package (as you say into your readme) and it could be great to allow relative paths for the pyqt-integration.qtdesigner.path
(and others):
${workspaceFolder}
python.pythonPath
problem: Can not preview .ui
file
source ui file: qt-material/main_window.ui at master · UN-GCPDS/qt-material · GitHub
information:
PyQt5:5.15.4
pyqt5-plugins:5.15.4.2.2
PyQt5-Qt5:5.15.2
PyQt5-sip:12.9.0
pyqt5-tools:5.15.4.3.2
PyQtWebEngine:5.15.4
PyQtWebEngine-Qt5:5.15.2
qt5-applications:5.15.2.2.2
qt5-tools:5.15.2.1.2
description:
I use plugin PyQt Integration on VS Code, and use function preview to preview an example ui project from GitHub - UN-GCPDS/qt-material.
However, I received an error. I use these command to reshow the sense:
pyuic5 -d -p %filename%
And with error output below:
(qt5) D:\Workspaces\VSCode\VDAP>D:\Workspaces\Conda\envs\qt5\Scripts\pyuic5.exe -d -p full_features\main_window.ui
PyQt5.uic.uiparser: uiname is MainWindow
PyQt5.uic.uiparser: toplevel widget is QMainWindow
PyQt5.uic.properties: setting property geometry
PyQt5.uic.properties: setting property windowTitle
PyQt5.uic.uiparser: push QMainWindow MainWindow
PyQt5.uic.uiparser: push QWidget centralwidget
PyQt5.uic.uiparser: push QGridLayout gridLayout_17
PyQt5.uic.properties: setting property tabPosition
PyQt5.uic.properties: setting property currentIndex
PyQt5.uic.properties: setting property tabsClosable
PyQt5.uic.uiparser: push QTabWidget tabWidget_2
PyQt5.uic.uiparser: push QWidget tab
PyQt5.uic.uiparser: push QGridLayout gridLayout_22
PyQt5.uic.properties: setting property currentIndex
PyQt5.uic.uiparser: push QToolBox toolBox
PyQt5.uic.properties: setting property geometry
PyQt5.uic.uiparser: push QWidget page
PyQt5.uic.uiparser: push QGridLayout gridLayout_14
Qt WebEngine seems to be initialized from a plugin. Please set Qt::AA_ShareOpenGLContexts using QCoreApplication::setAttribute before constructing QGuiApplication.
Traceback (most recent call last):
File "d:\workspaces\conda\envs\qt5\lib\site-packages\PyQt5\uic\pyuic.py", line 75, in main
exit_status = driver.invoke()
File "d:\workspaces\conda\envs\qt5\lib\site-packages\PyQt5\uic\driver.py", line 57, in invoke
return self._preview()
File "d:\workspaces\conda\envs\qt5\lib\site-packages\PyQt5\uic\driver.py", line 71, in _preview
widget = loadUi(self._ui_file)
File "d:\workspaces\conda\envs\qt5\lib\site-packages\PyQt5\uic\__init__.py", line 238, in loadUi
return DynamicUILoader(package).loadUi(uifile, baseinstance, resource_suffix)
File "d:\workspaces\conda\envs\qt5\lib\site-packages\PyQt5\uic\Loader\loader.py", line 66, in loadUi
return self.parse(filename, resource_suffix)
File "d:\workspaces\conda\envs\qt5\lib\site-packages\PyQt5\uic\uiparser.py", line 1037, in parse
actor(elem)
File "d:\workspaces\conda\envs\qt5\lib\site-packages\PyQt5\uic\uiparser.py", line 828, in createUserInterface
self.traverseWidgetTree(elem)
File "d:\workspaces\conda\envs\qt5\lib\site-packages\PyQt5\uic\uiparser.py", line 806, in traverseWidgetTree
handler(self, child)
File "d:\workspaces\conda\envs\qt5\lib\site-packages\PyQt5\uic\uiparser.py", line 273, in createWidget
self.traverseWidgetTree(elem)
File "d:\workspaces\conda\envs\qt5\lib\site-packages\PyQt5\uic\uiparser.py", line 806, in traverseWidgetTree
handler(self, child)
File "d:\workspaces\conda\envs\qt5\lib\site-packages\PyQt5\uic\uiparser.py", line 503, in createLayout
self.traverseWidgetTree(elem)
File "d:\workspaces\conda\envs\qt5\lib\site-packages\PyQt5\uic\uiparser.py", line 806, in traverseWidgetTree
handler(self, child)
File "d:\workspaces\conda\envs\qt5\lib\site-packages\PyQt5\uic\uiparser.py", line 546, in handleItem
self.traverseWidgetTree(elem)
File "d:\workspaces\conda\envs\qt5\lib\site-packages\PyQt5\uic\uiparser.py", line 806, in traverseWidgetTree
handler(self, child)
File "d:\workspaces\conda\envs\qt5\lib\site-packages\PyQt5\uic\uiparser.py", line 273, in createWidget
self.traverseWidgetTree(elem)
File "d:\workspaces\conda\envs\qt5\lib\site-packages\PyQt5\uic\uiparser.py", line 806, in traverseWidgetTree
handler(self, child)
File "d:\workspaces\conda\envs\qt5\lib\site-packages\PyQt5\uic\uiparser.py", line 273, in createWidget
self.traverseWidgetTree(elem)
File "d:\workspaces\conda\envs\qt5\lib\site-packages\PyQt5\uic\uiparser.py", line 806, in traverseWidgetTree
handler(self, child)
File "d:\workspaces\conda\envs\qt5\lib\site-packages\PyQt5\uic\uiparser.py", line 503, in createLayout
self.traverseWidgetTree(elem)
File "d:\workspaces\conda\envs\qt5\lib\site-packages\PyQt5\uic\uiparser.py", line 806, in traverseWidgetTree
handler(self, child)
File "d:\workspaces\conda\envs\qt5\lib\site-packages\PyQt5\uic\uiparser.py", line 546, in handleItem
self.traverseWidgetTree(elem)
File "d:\workspaces\conda\envs\qt5\lib\site-packages\PyQt5\uic\uiparser.py", line 806, in traverseWidgetTree
handler(self, child)
File "d:\workspaces\conda\envs\qt5\lib\site-packages\PyQt5\uic\uiparser.py", line 273, in createWidget
self.traverseWidgetTree(elem)
File "d:\workspaces\conda\envs\qt5\lib\site-packages\PyQt5\uic\uiparser.py", line 806, in traverseWidgetTree
handler(self, child)
File "d:\workspaces\conda\envs\qt5\lib\site-packages\PyQt5\uic\uiparser.py", line 273, in createWidget
self.traverseWidgetTree(elem)
File "d:\workspaces\conda\envs\qt5\lib\site-packages\PyQt5\uic\uiparser.py", line 806, in traverseWidgetTree
handler(self, child)
File "d:\workspaces\conda\envs\qt5\lib\site-packages\PyQt5\uic\uiparser.py", line 503, in createLayout
self.traverseWidgetTree(elem)
File "d:\workspaces\conda\envs\qt5\lib\site-packages\PyQt5\uic\uiparser.py", line 806, in traverseWidgetTree
handler(self, child)
File "d:\workspaces\conda\envs\qt5\lib\site-packages\PyQt5\uic\uiparser.py", line 546, in handleItem
self.traverseWidgetTree(elem)
File "d:\workspaces\conda\envs\qt5\lib\site-packages\PyQt5\uic\uiparser.py", line 806, in traverseWidgetTree
handler(self, child)
File "d:\workspaces\conda\envs\qt5\lib\site-packages\PyQt5\uic\uiparser.py", line 264, in createWidget
self.stack.push(self.setupObject(widget_class, parent, elem))
File "d:\workspaces\conda\envs\qt5\lib\site-packages\PyQt5\uic\uiparser.py", line 228, in setupObject
obj = self.factory.createQObject(clsname, name, args, is_attribute)
File "d:\workspaces\conda\envs\qt5\lib\site-packages\PyQt5\uic\objcreator.py", line 100, in createQObject
factory = self.findQObjectType(classname)
File "d:\workspaces\conda\envs\qt5\lib\site-packages\PyQt5\uic\objcreator.py", line 125, in findQObjectType
w = module.search(classname)
File "d:\workspaces\conda\envs\qt5\lib\site-packages\PyQt5\uic\Loader\qobjectcreator.py", line 69, in search
self._module = __import__(self._moduleName, {}, {}, self._classes)
ImportError: QtWebEngineWidgets must be imported before a QCoreApplication instance is created
(qt5) D:\Workspaces\VSCode\VDAP>
If anyone know what is this about? Thanks.
If PyQt and releted packages are installed in a virtual environment all the commands fail. The error is as follow:
Error: Command failed: "pyuic5" -p "c:\Users\pikulenkor\Documents\pyqt5\lesson 27\main_window.ui" '"pyuic5"' is not recognized as an internal or external command, operable program or batch file.
i would like to know exactly how to make this extension completely functional rather than depending on the python shell , please , if possible, explain in detail.
I cannot find the license of the code.
It is great tool which has nice feature.
Can you add the new feature which has "pyqt-integration. pyuic.compile.addOptions?
Thanks for contribution again.
希望能添加这个快捷方式。
谢谢制作此插件。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.