资源简介
利用Pyqt5实现了基本的口算题和时间功能。
具体实现步骤见我的博客链接:
http://blog.csdn.net/qq_32747775/article/details/79264482
代码片段和文件信息
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file ‘kousuan_kaidi.ui‘
#
# Created by: PyQt5 UI code generator 5.9.2
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore QtGui QtWidgets
from PyQt5.QtWidgets import QMessageBox
import time
import random
import docx
class Ui_Form(object):
def setupUi(self Form):
Form.setobjectName(“Form“)
Form.resize(1000 750)
self.label = QtWidgets.QLabel(Form)
self.label.setGeometry(QtCore.QRect(300 0 360 100))
font = QtGui.QFont()
font.setFamily(“Adobe Devanagari“)
font.setPointSize(24)
font.setBold(True)
font.setItalic(False)
font.setWeight(75)
self.time1 = time.time()
self.time2 = time.time()
self.timer_result = QtCore.QTimer()
self.file = docx.Document()
self.fuhao=[0000000000]
self.xuhao1=[87691026 27 28 29 30]
self.xuhao2=[141312111536 37 38 39 40]
self.xuhao3 = [17 16 19 18 2041 42 4344 45]
self.xuhao4=[43251678910]
self.result=[0000000000]
self.xuhao1_num=[0000000000]
self.xuhao3_num = [0 0 0 0 0 0 0 0 0 0]
self.result_label=[0 0 0 0 0 0 0 0 0 0]
self.label.setFont(font)
self.label.setobjectName(“label“)
self.label_2 = QtWidgets.QLabel(Form)
self.label_2.setGeometry(QtCore.QRect(810 90 100 15))
self.label_2.setobjectName(“label_2“)
self.label_3 = QtWidgets.QLabel(Form)
self.label_3.setGeometry(QtCore.QRect(760 90 100 15))
self.label_3.setobjectName(“label_3“)
self.label_4 = QtWidgets.QLabel(Form)
self.label_4.setGeometry(QtCore.QRect(760 120 100 15))
self.label_4.setobjectName(“label_4“)
self.label_5 = QtWidgets.QLabel(Form)
self.label_5.setGeometry(QtCore.QRect(810 120 100 15))
self.label_5.setobjectName(“label_5“)
self.pushButton = QtWidgets.QPushButton(Form)
self.pushButton.setGeometry(QtCore.QRect(770 160 111 41))
self.pushButton.setobjectName(“pushButton“)
self.verticalLayoutWidget = QtWidgets.QWidget(Form)
self.verticalLayoutWidget.setGeometry(QtCore.QRect(150 220 51 361))
self.verticalLayoutWidget.setobjectName(“verticalLayoutWidget“)
self.verticalLayout = QtWidgets.QVBoxLayout(self.verticalLayoutWidget)
self.verticalLayout.setContentsMargins(0 0 0 0)
self.verticalLayout.setobjectName(“verticalLayout“)
self.label_8 = QtWidgets.QLabel(self.verticalLayoutWidget)
font = QtGui.QFont()
font.setFamily(“Adobe Caslon Pro Bold“)
font.setPointSize(14)
font.setBold(True)
font.setUnderline(False)
font.setWeight(75)
font.setStrikeOut(False)
- 上一篇:JSYX2.0.zip
- 下一篇:利用OpenCV检测人脸python程序
相关资源
- 续Python3.x+Pyqt5实现主窗体里QToolBox导航
- Python3.x+Pyqt5实现主窗体里的工具栏,
- Python3.x+Pyqt5实现界面左侧树形导航栏
- Python3.x+Pyqt5实现绘图界面MainWindow类型
- Python3.x+Pyqt5实现界面和逻辑分离案例
- PyQt5初级教程
- PYQT做的计算器界面源码
- pyqt、echarts
- Qt界面文件(.ui)和资源文件(.qrc)
- Python和pyqt5中安装VTK实现三维数据可视
- Python3.x+Pyqt5实现界面左侧导航栏的抽
- Python3.x+Pyqt5制作GUI界面的案例
- Python3.x+Pyqt5实现绘图界面matplotlib绘图
- Python PyQt5编写的天气预报
- python+pyqt5显示图像,播放视频,绘图
- python实现的ping工具
- PyQt5中异步刷新UI+Python中的多线程+p
- 计算机图形学课程代码资源.zip
- 中点画圆算法pyqt5实现.zip
- PYQT5+图片拖拽
- 使用pyqt5实现的Python-GUI动态作图
- Python3.x+Pyqt5实现主窗体与子窗体相互
- PyQt5实时显示Camera
- python 打印信息重定向 GUI界面 ,PyQt
- pyqt5下连接sqlite3并显示
- python+pyqt5 做上位机界面
- PyQt5CheckBox简单界面
- PYQT5写字板
-
pyqt5+requests+bs4+lxm
l+urllib阅读小说窗 - PyQt5 入门级
评论
共有 条评论