当前位置:网站首页>Some summary of pyqt5 learning (overview of the general meaning of some signals and methods)
Some summary of pyqt5 learning (overview of the general meaning of some signals and methods)
2022-07-01 13:15:00 【aijiayi00】
Actually Python The naming of methods in classes of are regular .
1. All English words
2. First word initial lowercase , The following words are capitalized .( for example :valueChange)
PyQt The same is true of the signal sent by the control of .
Generally, you should remember some English words . People with good English probably have no problem .( But my English , Uh ... It 's a long story )
value: value
change: change
current: Correct
selection: Choose , choice
clicked: single click
toggle: Flip , State change
editing: Edit text
finish: complete
It seems that just these words .
for example :
Buttons are clicked The signal —— That is, click to transmit the signal
If there is a slider valueChange The signal —— That is, the signal is transmitted when the value changes
The text box has editingFinish The signal —— That is, the signal will be sent after text editing
The radio buttons are toggle The signal —— That is, the signal is transmitted when the state changes ( Because it's a radio button , Selecting another button will change the selected state .)
PyQt Control .
In fact, many methods will be repeated , That is, the same goal by different paths . It's all about the same .
First remember some English words :
set: Set up
text: Text
single: Drag the ( mouse )
page: Click on ( mouse )
step: step
property: attribute
TickTool: Tips
geometry: The geometric ( Location )
That's about it .( frequently-used )
such as :
text(): Get text
value(): Get value
setText(): Set text
setValue(): Set initial value
setTickTool(): Set prompt
setGeometry(): Set the location of the control
setProperty("value",1): Set properties ( Optional attribute settings ------ Here are the settings value The attribute is 1, That is to say, it's worth 1)
边栏推荐
- Localtime can't re-enter. It's a pit
- JS discolored Lego building blocks
- Analysis report on production and marketing demand and investment forecast of global and Chinese diamond powder industry Ⓤ 2022 ~ 2027
- MySQL statistical bill information (Part 2): data import and query
- 流量管理技术
- Fiori applications are shared through the enhancement of adaptation project
- Report on the current situation and development trend of bidirectional polypropylene composite film industry in the world and China Ⓟ 2022 ~ 2028
- Jenkins+webhooks- multi branch parametric construction-
- Introduction to reverse debugging PE structure input table output table 05/07
- Look at the sky at dawn and the clouds at dusk, and enjoy the beautiful pictures
猜你喜欢

Operator-1 first acquaintance with operator

Redis exploration: cache breakdown, cache avalanche, cache penetration

逆向调试入门-PE结构-输入表输出表05/07

Flow management technology

Detailed explanation of OSPF LSA of routing Foundation

王兴的无限游戏迎来“终极”一战

北斗通信模块 北斗gps模块 北斗通信终端DTU

啟動solr報錯The stack size specified is too small,Specify at least 328k

Project deployment is not difficult at all!

我选的热门专业,四年后成了“天坑”
随机推荐
Tencent always takes epoll, which is annoying
China NdYAG crystal market research conclusion and development strategy proposal report Ⓥ 2022 ~ 2028
【大型电商项目开发】性能压测-压力测试基本概念&JMeter-38
Topic 2612: the real topic of the 12th provincial competition of the Blue Bridge Cup in 2021 - the least weight (enumerating and finding rules + recursion)
Operator-1 first acquaintance with operator
CS5268优势替代AG9321MCQ Typec多合一扩展坞方案
Report on the current situation and development trend of bidirectional polypropylene composite film industry in the world and China Ⓟ 2022 ~ 2028
Run PowerShell script prompt "because running script is prohibited on this system" solution
机器学习—性能度量
The future of game guild in decentralized games
路由基础之OSPF LSA详细讲解
[Niu Ke's questions -sql big factory interview real questions] no2 User growth scenario (a certain degree of information flow)
Global and Chinese n-butanol acetic acid market development trend and prospect forecast report Ⓧ 2022 ~ 2028
Localtime can't re-enter. It's a pit
SQLAlchemy在删除有外键约束的记录时,外键约束未起作用,何解?
图灵奖得主Judea Pearl:最近值得一读的19篇因果推断论文
MySQL gap lock
Mysql间隙锁
Update a piece of data from the database. Will CDC get two pieces of data with OP fields D and C at the same time? I remember before, only OP was U
La taille de la pile spécifiée est petite, spécifiée à la sortie 328k