资源简介
PyQt5系列教程(二)利用QtDesigner设计UI界面源码包,博文地址http://blog.csdn.net/djstavaV/article/details/50282527
代码片段和文件信息
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file ‘firstPyQt5.ui‘
#
# Created by: PyQt5 UI code generator 5.5.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(631 600)
self.centralwidget = QtWidgets.QWidget(mainWindow)
self.centralwidget.setobjectName(“centralwidget“)
self.pushButton = QtWidgets.QPushButton(self.centralwidget)
self.pushButton.setGeometry(QtCore.QRect(250 130 131 61))
font = QtGui.QFont()
font.setPointSize(22)
self.pushButton.setFont(font)
self.pushButton.setobjectName(“pushButton“)
mainWindow.setCentralWidget(self.centralwidget)
self.menubar = QtWidgets.QMenuBar(mainWindow)
self.menubar.setGeometry(QtCore.QRect(0 0 631 22))
self.menubar.setobjectName(“menubar“)
mainWindow.setMenuBar(self.menubar)
self.statusbar = QtWidgets.QStatusBar(mainWindow)
self.statusbar.setobjectName(“statusbar“)
mainWindow.setStatusBar(self.statusbar)
self.retranslateUi(mainWindow)
self.pushButton.clicked.connect(self.firtPyQt5_button_click)
QtCore.Qmetaobject.connectSlotsByName(mainWindow)
def retranslateUi(self mainWindow):
_translate = QtCore.QCoreApplication.translate
mainWindow.setWindowtitle(_translate(“mainWindow“ “第一个PyQt5程序“))
self.pushButton.setText(_translate(“mainWindow“ “点我弹框“))
def firtPyQt5_button_click(self):
QtWidgets.QMessageBox.information(self.pushButton“标题““这是第一个PyQt5 GUI程序“)
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2015-12-13 13:21 firstPyQt5\
目录 0 2015-12-13 13:30 firstPyQt5\.idea\
文件 10 2015-12-13 12:44 firstPyQt5\.idea\.name
文件 159 2015-12-13 12:44 firstPyQt5\.idea\encodings.xm
文件 398 2015-12-13 12:44 firstPyQt5\.idea\firstPyQt5.iml
文件 727 2015-12-13 12:44 firstPyQt5\.idea\misc.xm
文件 272 2015-12-13 12:44 firstPyQt5\.idea\modules.xm
文件 21960 2015-12-13 13:30 firstPyQt5\.idea\workspace.xm
目录 0 2015-12-13 13:21 firstPyQt5\__pycache__\
文件 1873 2015-12-13 13:21 firstPyQt5\__pycache__\firstPyQt5.cpython-35.pyc
文件 1772 2015-12-13 13:21 firstPyQt5\firstPyQt5.py
文件 121 2015-12-13 12:50 firstPyQt5\firstPyQt5.qrc
文件 373 2015-12-13 12:51 firstPyQt5\main.py
相关资源
- 3GPP 25.321 HSDPA MAC协议中文版
- dos2unixunix2dosmac2unixunix2mac 64bit&32bit
- mac地址修改器,可以修改mac地址,可
- Mojave-dark-20190916113714.tar.xz Gnome主题包
- Tableau Desktop Pro for Mac
- mac os x EI Capitan 10.11.6原版系统(不适
- [Mac] OmniFocus 3.3.2 Pro 专业版激活码
- MAC地址唤醒电脑
- telemac 2d指导手册
- hmac加密算法的JS文件hmac-sha1.js
- Gnome-OSC-HS--2-themes.tar.xz
- MAC地址批量生成器Ver2.0.2.0
- jdk-8u261-x64(含linuxwindowsmacos)
- RTL8111E/RTL8168E网卡MAC地址刷写程序PG
- macOSCatalina10.15.x.iso网盘分享地址.txt
- 虚拟机装Mac系统必备beamoff增加流畅度
- 修改网卡MAC地址不需要重启电脑
- 机器码解封器.zip
- Fix Yosemite VM Graphic Performance
- Mac 终端命令行大全
- MAC厂商对应列表2018最新
- 批处理获取本机IP+MAC+计算机名
- amd macos.txt
- 群辉3617xs918+匹配正版SN和MAC支持转码
- macOS High Sierra 10.13.6 by Techsviewer
- A Tutorial on Support Vector Machines for Patt
- macOS镜像10.15.4
- mac Mojave10.14 黑苹果安装NVIDIA 显卡的
- VMware vmdk镜像文件
- sendpcap发包小软件
评论
共有 条评论