当前位置:网站首页>pyside2____ 1. Installation and case listing
pyside2____ 1. Installation and case listing
2022-07-27 05:11:00 【Shura_】
install pip install pyside2 -i https://pypi.douban.com/simple/
Code main.py
from PySide2.QtWidgets import QApplication, QMainWindow, QPlainTextEdit, QPushButton
app = QApplication() # General procedure
window = QMainWindow() # Main window object
window.resize(500, 400)
window.move(300, 310)
window.setWindowTitle(" Salary statistics ")
text = QPlainTextEdit(window)
text.setPlainText(" Please enter salary table ")
text.move(10, 25)
text.resize(300, 350)
button = QPushButton(' Statistics ', window)
button.move(380, 80)
window.show()
app.exec_() # loop
function main.py

边栏推荐
- pyside2____1.安装和案列
- QT 菜单栏、工具栏和状态栏
- How to create an applet project
- UUID and indexing rules
- Event filter
- Solution: read the files with different names in the two folders and deal with the files with different mappings
- 一、MySQL基础
- What about PS too laggy? A few steps to help you solve the problem
- Final Cut Pro Chinese tutorial (2) understanding of material window
- 支付流程如何测试?
猜你喜欢

Network protocol details: IP

How does PS import LUT presets? Photoshop import LUT color preset tutorial

Laozi cloud and Fuxin Kunpeng achieved a major breakthrough in 3D ofd 3D format documents for the first time

文件对话框

Raspberry pie output PWM wave to drive the steering gear

QT 菜单栏、工具栏和状态栏
![[error reporting] cannot read property 'parsecomponent' of undefined](/img/54/8d4225ec596d6b78348b181a3e636f.png)
[error reporting] cannot read property 'parsecomponent' of undefined

Knapsack problem DP

C language address book management system (linked list, segmented storage of mobile phone numbers, TXT file access, complete source code)

Another skill is to earn 30000 yuan a month+
随机推荐
Why is select not recommended*
MQ message queue is used to design the high concurrency of the order placing process, the generation scenarios and solutions of message squeeze, message loss and message repetition
老子云携手福昕鲲鹏,首次实现3D OFD三维版式文档的重大突破
Introduction to dynamic memory functions (malloc free calloc realloc)
Final Cut Pro Chinese tutorial (1) basic understanding of Final Cut Pro
集合框架的使用
[search] two way search + A*
抽卡程序模拟
传智教育|软件测试工程师未来的发展方向有哪些?
【无标题】按照一定的条件,对 i 进行循环累加。条件通常为循环数组的长度,当超过长度就停止循环。因为对象无法判断长度,所以通常搭配 Object.keys() 使用。\nforEach 一般认为是 普
Inspiration from "flying man" Jordan! Another "arena" opened by O'Neill
35.滚动 scroll
知识点总结(一)
Install pyGame
智慧展厅设计的优势及适用行业分析
QT menu bar, toolbar and status bar
Tcp server是如何一个端口处理多个客户端连接的(一对一还是一对多)
Use of file i/o in C
Laozi cloud and Fuxin Kunpeng achieved a major breakthrough in 3D ofd 3D format documents for the first time
Replication of df-gan experiment -- detailed steps of replication of dfgan and forwarding from remote port to local port using mobaxtem