pyside

关于python3.8+ pyside2 pyinstaller打包的一些坑

你离开我真会死。 提交于 2020-10-07 04:40:52
环境: python 3.8 pyinstaller 3.6 pyside2 5.14 打包过程中出现错误(1): 7607 WARNING: lib not found : pywintypes38 . dll dependency of c :\ users \ have_ \ appdata \ local \ programs \ python \ python38 \ lib \ site - packages \ win32 \ win32evtlog . pyd 7622 WARNING: lib not found : pywintypes38 . dll dependency of c :\ users \ have_ \ appdata \ local \ programs \ python \ python38 \ lib \ site - packages \ win32 \ win32api . pyd 解决方法: 打包命令中添加 pywintypes38.dll 的路径例如 --paths C:\Users\have_\AppData\Local\Programs\Python\Python38\Lib\site-packages\pywin32_system32 完整的命令为 C: \Users\have_\Desktop\LanZouCloud

You are using pip version 19.0.3, however version 20.2b1 is available...的解决方法

微笑、不失礼 提交于 2020-10-05 15:53:57
我是在装pyside2时候遇到错误 在网上找了很多种方法都不成功 以下为我的方法 首先执行更新pip python -m pip install --upgrade pip -i https: // pypi.douban.com/simple 再安装pyside2 pip install pyside2 如果嫌弃上面速度太慢 从清华镜像源安装pyside库 pip install - i https : // pypi . tuna . tsinghua . edu . cn / simple pyside2 安装成功啦~~~~! 来源: oschina 链接: https://my.oschina.net/u/4271440/blog/4428197

how to make transparent background for drawn objects (ex. drawLine)?

五迷三道 提交于 2020-08-26 07:42:30
问题 I want to make to make an application where just the drawn objects (ex. drawLine) is visible, not the background. So, if a user opens up the application, he/she can draw shapes, and only see the shapes drawn. I'm new to pyside, but I've found examples where only the widget is visible, but I don't think that applies to this problem. a = QPoint(22, 22) b = QPoint(444, 444) def __init__(self, parent=None): QWidget.__init__(self, parent) self.setGeometry(300, 300, 350, 350) self.setWindowTitle(

how to make transparent background for drawn objects (ex. drawLine)?

耗尽温柔 提交于 2020-08-26 07:42:06
问题 I want to make to make an application where just the drawn objects (ex. drawLine) is visible, not the background. So, if a user opens up the application, he/she can draw shapes, and only see the shapes drawn. I'm new to pyside, but I've found examples where only the widget is visible, but I don't think that applies to this problem. a = QPoint(22, 22) b = QPoint(444, 444) def __init__(self, parent=None): QWidget.__init__(self, parent) self.setGeometry(300, 300, 350, 350) self.setWindowTitle(

9个动图带你进入PyQtGraph的强大可视化世界

自作多情 提交于 2020-08-13 07:24:36
PyQtGraph是一个建立在PyQt/PySide之上的Python数据可视化图形界面库,其性能强、速度快,能够胜任大部分交互式的2D、3D图形绘制,可以搞定数据科学领域大量的数据可视化工作。 州的先生之前绘制的A股股票动态K线图,就是使用PyQtGraph绘制的。 A股复苏,入场还是解套?Python秒绘交互式股票K线图 PyQtGraph官方提供了很好的示例来供学习者了解PyQtGraph的功能,下面我们通过9个图形,来一窥PyQtGraph的可视化世界。 基础的数组绘制折线图 # coding:utf-8 # 作者:州的先生 # 博客:https://zmister.com from pyqtgraph . Qt import QtGui , QtCore import numpy as np import pyqtgraph as pg # 实例化一个绘图窗口 win = pg . GraphicsWindow () win . resize ( 1000 , 600 ) win . setWindowTitle ( 'PyQtGraph基础绘图示例 - zmister.com' ) # 启用抗锯齿选项 pg . setConfigOptions ( antialias = True ) # 使用addPlot()方法直接添加一个数组以绘制图形 p1 = win .

兼容 PyQt5 与 PySide2 代码构建 Qt 平台

别说谁变了你拦得住时间么 提交于 2020-08-12 20:23:03
在 xinetzone / xinet 放置 qt5.py 用于兼容 PyQt5 与 PySide2 代码: try : # PySide2 from PySide2 import QtGui , QtWidgets , QtCore , QtPrintSupport from PySide2 . QtCore import Signal , Slot except ImportError : # PyQt5 from PyQt5 import QtGui , QtWidgets , QtCore , QtPrintSupport from PyQt5 . QtCore import pyqtSignal as Signal , pyqtSlot as Slot 该库提供 pip 支持: pip install xinet Qt5 内容将以此模块进行开发。为了方便调用窗口,封装一个启动界面的 API: # xinet/run_qt.py from . Qt . qt5 import QtWidgets def run ( window_type , * args , ** kwargs ) : import sys app = QtWidgets . QApplication ( sys . argv ) window = window_type ( * args , **

Functional Test for QMessageBox… why does not work?

左心房为你撑大大i 提交于 2020-06-28 08:41:10
问题 I would develop some functional tests for a pyqt application that uses PyQt (or PySide) as GUI library. The tests use Unittest and Qttest library, as reported in many resources, for example this stackoverflow question: Unit and functional testing a PySide-based application? For the main window all works fine, and the code simulate perfectly Keyboard Types and Mouse Clicks and Movements, but the " devil is in the details "... and this method does not work for a QMessageBox. In the class of the

Functional Test for QMessageBox… why does not work?

天大地大妈咪最大 提交于 2020-06-28 08:41:08
问题 I would develop some functional tests for a pyqt application that uses PyQt (or PySide) as GUI library. The tests use Unittest and Qttest library, as reported in many resources, for example this stackoverflow question: Unit and functional testing a PySide-based application? For the main window all works fine, and the code simulate perfectly Keyboard Types and Mouse Clicks and Movements, but the " devil is in the details "... and this method does not work for a QMessageBox. In the class of the