一般的程序都要有个GUI来实现人机交互的功能,今天我们来用PyQt来做一个最简单的程序 软件需求:python3.6 用的是Anaconda3.6(自带PyQt5,pip) pycharm PyQt5 QtTools 环境安装和配置 由于Anaconda自带了PyQt5,不用再安装,但要用pip下载 ...
分类:
编程语言 时间:
2019-03-03 09:20:23
阅读次数:
658
File->Tools->External Tools->add 配置ui文件转换工具Name:PyUICProgram:D:\develop\python\Mac\venv\Scripts\pyuic5.exe pyuic5.exe 路径Arguments:$FileName$ -o $FileN ...
分类:
编程语言 时间:
2019-02-26 19:10:40
阅读次数:
251
import sys from PyQt5.QtWidgets import QMainWindow, QTextEdit, QAction, QApplication from PyQt5.QtGui import QIcon from PyQt5.QtCore import Qt class E... ...
分类:
其他好文 时间:
2019-02-25 18:33:40
阅读次数:
243
# -*- coding: utf-8 -*- import sys from PyQt5.QtWidgets import * from PyQt5.QtCore import * class FirstWindow(QWidget): close_signal = pyqtSignal() de... ...
分类:
其他好文 时间:
2019-02-22 23:05:26
阅读次数:
200
1 import sys 2 from PyQt5.QtCore import Qt 3 from PyQt5.QtWidgets import QApplication, QWidget, QTreeWidget, QTreeWidgetItem, QLabel, QHBoxLayout 4 5 ... ...
分类:
其他好文 时间:
2019-02-15 13:15:02
阅读次数:
189
window 安装PyQt5 pip install pyqt5 pip install pyqt5-tools 配置QT环境变量 变量名: QT_QPA_PLATFORM_PLUGIN_PATH 变量值: D:\workspace\Python\练习\venv\Lib\site-packages\ ...
分类:
其他好文 时间:
2019-02-11 21:34:19
阅读次数:
223
1 import sys 2 from PyQt5.QtWidgets import QApplication, QWidget,QLabel 3 from PyQt5.QtGui import QFont 4 from PyQt5 import QtCore 5 6 class Demo(QWid... ...
分类:
其他好文 时间:
2019-02-11 10:47:07
阅读次数:
507
1 import sys 2 from PyQt5.QtCore import Qt, QTimer 3 from PyQt5.QtWidgets import QApplication, QWidget, QProgressBar, QPushButton, QHBoxLayout, QVBoxL... ...
分类:
其他好文 时间:
2019-02-10 20:19:04
阅读次数:
252
Author: Notus(hehe_xiao@qq.com) Create: 2019 02 10 Update: 2019 02 10 PyQt5 实现显示和业务逻辑分离, 继承主界面文件的主窗口类 环境 操作系统: Windows 10 专业版 64 bit (10.0, Build 1629 ...
分类:
其他好文 时间:
2019-02-10 17:39:37
阅读次数:
196