当前位置:网站首页>pyside2____1.安装和案列
pyside2____1.安装和案列
2022-07-27 05:00:00 【修罗_】
安装 pip install pyside2 -i https://pypi.douban.com/simple/
代码main.py
from PySide2.QtWidgets import QApplication, QMainWindow, QPlainTextEdit, QPushButton
app = QApplication() # 总程序
window = QMainWindow() # 主窗口对象
window.resize(500, 400)
window.move(300, 310)
window.setWindowTitle("薪资统计")
text = QPlainTextEdit(window)
text.setPlainText("请输入薪资表")
text.move(10, 25)
text.resize(300, 350)
button = QPushButton('统计', window)
button.move(380, 80)
window.show()
app.exec_() # 循环
运行main.py

边栏推荐
- Hiding skills of Photoshop clipping tool
- How to create an applet project
- 来自“飞人”乔丹的启示!奥尼尔开启的另一个“赛场”
- OFDM 十六讲 2- OFDM and the DFT
- Use of file i/o in C
- Easily download data in power Bi reports with power auto
- Be diligent in talking about what sidelines you can do now
- [search] two way search + A*
- What about PS too laggy? A few steps to help you solve the problem
- Mysql表的约束
猜你喜欢

OFDM 十六讲 2- OFDM and the DFT

The project connects with Alipay payment, and the intranet penetration realizes the monitoring of asynchronous callback notification of successful payment of Alipay
![[Niuke discussion area] Chapter 7: building safe and efficient enterprise services](/img/62/2b170e8dd5034708aebc6df0bc2b06.png)
[Niuke discussion area] Chapter 7: building safe and efficient enterprise services

对话框简介

Why is count (*) slow

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

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

如何将Photoshop图层复制到其他文档

Knowledge about hash index and b+ tree

Hiding skills of Photoshop clipping tool
随机推荐
节流函数的demo——正则表达式匹配
What if Photoshop prompts that the temporary storage disk is full? How to solve the problem that PS temporary storage disk is full?
Plato farm is expected to further expand its ecosystem through elephant swap
UUID and indexing rules
对话框数据传递
Svn usage details
使用mq消息队列来进行下单流程的高并发设计,消息挤压,消息丢失,消息重复的产生场景和解决方案
Hiding skills of Photoshop clipping tool
Transaction database and its four characteristics, principle, isolation level, dirty read, unreal read, non repeatable read?
树莓派输出PWM波驱动舵机
How does PS import LUT presets? Photoshop import LUT color preset tutorial
[untitled] I is circularly accumulated under certain conditions. The condition is usually the length of the loop array. When it exceeds the length, the loop will stop. Because the object cannot judge
【搜索】Flood Fill 和 最短路模型
[search] flood fill and shortest path model
精选用户故事|洞态在聚水潭的误报率几乎为0,如何做到?
Customize the viewport height, and use scrolling for extra parts
Install pyGame
When using Photoshop, the prompt "script error -50 general Photoshop error appears“
文件对话框
Knowledge about hash index and b+ tree