
Python
文章平均质量分 92
Blues Feng
创造力改变世界!
展开
-
PySide2: QPushButton 按钮实现长按效果
1. 原理重写mousePressEvent和mouseReleaseEvent捕获鼠标按下和抬起事件,使用QTimer计时,模拟长按的效果2. 完整代码重点关注LongClickButton,关键逻辑都在其中,import sysfrom PySide2.QtWidgets import QWidget, QApplication, QPushButtonfrom PySide2.QtCore import QTimerclass LongClickDemo(QWidget):原创 2020-06-02 23:05:12 · 2005 阅读 · 0 评论 -
解决PySide2问题:plugin cannot be loaded for module QtQuick.Controls
背景近期在学习PySide2相关知识,但是在运行官方的demo时却遇到标题中的问题,折腾了很长时间,最后找到原因,现将整个问题发生及解决过程记录如下。环境Win10 x64Anaconda 3(内含Python3.7.1)PySide2 5.14.1VS Code 1.45.1问题发生过程以及解决方案(1) 从 https://doc.qt.io/qtforpython/tutorials/qmlintegration/qmlintegration.html下载main.py和view.qm原创 2020-05-20 23:34:13 · 2038 阅读 · 0 评论 -
使用Anaconda中的pip命令报错:pip is configured with locations that require TLS/SSL
背景今天在公司安装了Anaconda,准备更换下Anaconda自带的jupyter notebook的主题,但是执行pip install时报TLS/SSL错误。安装环境Win7 64位Anaconda (Python 3.7),并已将D:\Anaconda3和D:\Anaconda3\Scripts添加到环境变量PATH中。问题详情执行以下命令报错:pip install --u...原创 2019-01-22 18:59:36 · 35146 阅读 · 52 评论 -
Python3 基础
参考文档Python interface to Tcl/TkPython Wiki菜鸟教程-Python3廖雪峰的官方教程-Python教程Python简介Python是由Guido van Rossum在1989编写一种解释性语言,名字取自作者最喜爱的马戏团Monty Python’s Flying Circus(蒙提.派森干的飞行马戏团)。特点易读、易学、易维护开源、免费,...原创 2019-02-12 17:35:12 · 792 阅读 · 0 评论