资源简介
使用ui文件生成的计算器界面源码,对每个按钮的点击事件做了定义
代码片段和文件信息
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file ‘calc.ui‘
#
# Created by: PyQt5 UI code generator 5.10.1
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore QtGui QtWidgets
class Ui_MainWindow(object):
def setupUi(self MainWindow):
MainWindow.setobjectName(“MainWindow“)
MainWindow.resize(420 332)
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setobjectName(“centralwidget“)
self.verticalLayoutWidget = QtWidgets.QWidget(self.centralwidget)
self.verticalLayoutWidget.setGeometry(QtCore.QRect(30 39 322 161))
self.verticalLayoutWidget.setobjectName(“verticalLayoutWidget“)
self.verticalLayout = QtWidgets.QVBoxLayout(self.verticalLayoutWidget)
self.verticalLayout.setContentsMargins(0 0 0 0)
self.verticalLayout.setobjectName(“verticalLayout“)
self.gridLayout = QtWidgets.QGridLayout()
self.gridLayout.setobjectName(“gridLayout“)
self.pushButton_13 = QtWidgets.QPushButton(self.verticalLayoutWidget)
self.pushButton_13.setobjectName(“pushButton_13“)
self.gridLayout.addWidget(self.pushButton_13 4 0 1 1)
self.pushButton_16 = QtWidgets.QPushButton(self.verticalLayoutWidget)
self.pushButton_16.setobjectName(“pushButton_16“)
self.gridLayout.addWidget(self.pushButton_16 4 3 1 1)
self.pushButton = QtWidgets.QPushButton(self.verticalLayoutWidget)
self.pushButton.setobjectName(“pushButton“)
self.gridLayout.addWidget(self.pushButton 2 3 1 1)
self.pushButton_2 = QtWidgets.QPushButton(self.verticalLayoutWidget)
self.pushButton_2.setobjectName(“pushButton_2“)
self.gridLayout.addWidget(self.pushButton_2 2 2 1 1)
self.pushButton_3 = QtWidgets.QPushButton(self.verticalLayoutWidget)
self.pushButton_3.setobjectName(“pushButton_3“)
self.gridLayout.addWidget(self.pushButton_3 2 1 1 1)
self.pushButton_14 = QtWidgets.QPushButton(self.verticalLayoutWidget)
self.pushButton_14.setobjectName(“pushButton_14“)
self.gridLayout.addWidget(self.pushButton_14 4 1 1 1)
self.pushButton_15 = QtWidgets.QPushButton(self.verticalLayoutWidget)
self.pushButton_15.setobjectName(“pushButton_15“)
self.gridLayout.addWidget(self.pushButton_15 4 2 1 1)
self.pushButton_12 = QtWidgets.QPushButton(self.verticalLayoutWidget)
self.pushButton_12.setobjectName(“pushButton_12“)
self.gridLayout.addWidget(self.pushButton_12 1 3 1 1)
self.pushButton_4 = QtWidgets.QPushButton(self.verticalLayoutWidget)
self.pushButton_4.setobjectName(“pushButton_4“)
self.gridLayout.addWidget(self.pushButton_4 2 0 1 1)
self.pushButton_5 = QtWidgets.QPushButton(self.verticalLayoutWidget)
self.pushButton_5.setobjectName(“pushButton_
- 上一篇:python实现的视频播放器
- 下一篇:Python获取气象网站中的台风详细数据
相关资源
- python+pyqt5+百度AI+车牌识别.rar
- Python3.x+Pyqt5实现界面编程浏览网页
- Python-用pyqt5和parametrics实现很酷的动画
- PyQt5 Python 桌面应用程序源码.zip
- python pyqt5 计时器源代码
- python写的一个小型计算器
- pyqt5_python_Gui入门教程.docx
- 利用摄像头拍照并保存照片程序pyth
- QT5 Python GUI Programming Cookbook - 2018
- WCI指数计算器1.0版
- Python3.4 PyQt5 32位安装版PyQt5-5.5.1-gpl-
- PyQt5 5.3.2 gpl Py3.4 Qt5.3.1 x32.exe
- PyQt5-5.12-5.12.1_a-cp35.cp36.cp37.cp38-none-w
- Serial assistant.rar
- PyQt5快速开发与实战pdf+源码.zip
- 创建画板,手写体实时在线识别
- PyQt5_Tools-5.7.dev1-py3-none-any.whl
- PyQt5快速开发与实战.zip
- Python-一个用手势控制的计算器
- PyQt5-5.4-gpl-Py3.4-Qt5.4.0-x64
- Python + PyQt5 + MySQL模拟QQ的聊天与娱乐
- 创建画板,实时在线手写体识别
- PyQt5-5.5.1-gpl-Py3.4-Qt5.5.1-x32
- pyqt5实现自动获取IP软件
- python-vlc二次封装,可用于pyqt
- tesseract V2.0()
- 编译原理-词法解释器
- python聊天室---pyqt5+socket+Thread聊天室
- Pyqt5 按钮事件绘制图形
-
PyQ5 Mtaplotlib Datafr
ame画一条随鼠标移
评论
共有 条评论