python qt5
Python qt5
求知小菜鸟
一只笨笨的但是有一个求知欲的小小鸟。
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Python qt5编写第三个gui---由主窗口弹出子窗
Python qt5由主窗口弹出子窗 在主窗口有几个按钮,通过按按钮,可以弹出来子窗口,完成效果如下图。 1.首先将主窗口的ui文件转化为Python文件 主窗口文件 Ui_jiemian3.py # -*- coding: utf-8 -*- # Form implementation generated from reading ui file '/home/li/桌面/python/qt/jiemiansan/jiemian3.ui' # # Created by: PyQt5 UI code g原创 2020-08-29 23:47:13 · 1428 阅读 · 1 评论 -
【Python】解决No name ‘QWidget‘ in module ‘PyQt5.QtWidgets‘
【Python】解决No name ‘QWidget’ in module ‘PyQt5.QtWidgets’ 【Python】解决No name ‘QWidget’ in module ‘PyQt5.QtWidgets’原创 2020-07-09 10:25:05 · 1859 阅读 · 0 评论 -
python qt5 第二个gui编写-----简易计算器
python qt5 第二个gui---简易计算器 笔者运行工作环境 Ubuntu18.04 Python qt5 Python3.6.9 gui界面以及全部代码 下边是通过qt designer设计的gui界面。 下边是全部代码 # -*- coding: utf-8 -*- # Form implementation generated from reading ui file '/home/li/桌面/python/qt/calcultor/calcultor.ui' # # Created by原创 2020-07-08 15:20:37 · 1267 阅读 · 0 评论 -
Python qt5 第一个gui编写-10个对象随机排列
Python qt5 第一个gui编写-10个对象随机排列 笔者运行工作环境: Ubuntu18.04 Python3.6.9 pyqt5 在文本框中输入10个对象,可以对十个对象进行随机排列。 全部代码 此为全部代码,下边对代码进行解析。 # -*- coding: utf-8 -*- # Form implementation generated from reading ui file '/home/li/桌面/python/qt/suijipailie.ui' # # Created by: P原创 2020-07-06 21:44:56 · 417 阅读 · 0 评论 -
UnicodeDecodeError: ‘ascii‘ codec can‘t decode byte 0xe6 in position 0: ordinal not in range(128)
UnicodeDecodeError: ‘ascii’ codec can’t decode byte 0xe6 in position 0: ordinal not in range(128) UnicodeDecodeError: ‘ascii’ codec can’t decode byte 0xe6 in position 0: ordinal not in range(128) HTMLTestRunner解决UnicodeDecodeError: ‘ascii’ codec can’t deco原创 2020-07-06 20:08:52 · 257 阅读 · 0 评论 -
PyQt5之多行文本框(QtextEdit)控件中的常用方法和信号
PyQt5之多行文本框(QtextEdit)控件中的常用方法和信号 PyQt5之多行文本框(QtextEdit)控件中的常用方法和信号原创 2020-07-06 20:03:47 · 1972 阅读 · 0 评论 -
Python qt5-- 按钮点击事件
Python qt5-- 按钮点击事件 Python qt5-- 按钮点击事件 Python3.6 Ubuntu1604-pyQt使用(不使用Qtdesigner)基本组件—布局—按钮事件处理原创 2020-07-06 15:29:22 · 8183 阅读 · 0 评论 -
Python程序以及Python GUI程序打包为exe文件
Python程序以及Python GUI程序打包为exe文件 笔者运行工作环境: Ubuntu18.04 qt5 Python3.6.9 1.安装Python3-pip sudo apt install python3-pip 2.利用pip3安装pyinstaller pip3 install pyinstaller 3.利用pyinstaller生成exe打包程序 pyinstaller 文件名.py 此时已经生成了可执行程序,可执行程序在文件夹dist中。注意在Ubuntu和window下原创 2020-07-05 19:41:45 · 1358 阅读 · 0 评论 -
Python qt5使用转化Python文件以及实例化
Python qt5使用转化Python文件以及实例化 1.打开qt5 designer并且创建mainwindow 2.然后另存为ui文件 3.在vscode中将ui文件转化为py文件。 打开py代码: # -*- coding: utf-8 -*- # Form implementation generated from reading ui file '/home/li/桌面/python/qt/test.ui' # # Created by: PyQt5 UI code generator原创 2020-07-05 16:03:35 · 2150 阅读 · 0 评论
分享