当前位置:网站首页>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

边栏推荐
猜你喜欢

Dialog introduction

Svn usage details

Raspberry pie output PWM wave to drive the steering gear

事件(event)

Review of various historical versions of Photoshop and system requirements

How to do smooth data migration: Double write scheme

Installation and template setting of integrated development environment pychar

「Photoshop2021入门教程」对齐与分布制作波点图案

MySQL下载安装 & 完美卸载

【牛客讨论区】第七章:构建安全高效的企业服务
随机推荐
Flexible array and common problems
C language address book management system (linked list, segmented storage of mobile phone numbers, TXT file access, complete source code)
Jmeter 界面如何汉化?
动态内存函数的介绍(malloc free calloc realloc)
kali系统arp介绍(断网嗅探密码抓包)
Advantages of smart exhibition hall design and applicable industry analysis
Photoshop裁剪工具隐藏技巧
对话框数据传递
对话框简介
"Photoshop2021 tutorial" align and distribute to make dot patterns
Plato farm is expected to further expand its ecosystem through elephant swap
标准对话框 QMessageBox
「Photoshop2021入门教程」“拉平”带有透视感的图像
《Robust and Precise Vehicle Localization based on Multi-sensor Fusionin Diverse City Scenes》翻译
Review of various historical versions of Photoshop and system requirements
What if Photoshop prompts that the temporary storage disk is full? How to solve the problem that PS temporary storage disk is full?
一、MySQL基础
Detailed explanation of mvcc and its principle
集成开发环境Pycharm的安装及模板设置
Mysql表的约束