当前位置:网站首页>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)
边栏推荐
- Content Audit Technology
- PG basics -- Logical Structure Management (trigger)
- Router.use() requires a middleware function but got a Object
- 我选的热门专业,四年后成了“天坑”
- I spent tens of thousands of dollars to learn and bring goods: I earned 3 yuan in three days, and the transaction depends on the bill
- R language uses conf of yardstick package_ The mat function calculates the confusion matrix of the multiclass model on each fold of each cross validation (or resampling), and uses the summary to outpu
- Manage nodejs with NVM (downgrade the high version to the low version)
- C language learning
- Report on the "14th five year plan" and scale prospect prediction of China's laser processing equipment manufacturing industry Ⓢ 2022 ~ 2028
- Analysis report on the development pattern of China's smart emergency industry and the 14th five year plan Ⓠ 2022 ~ 2028
猜你喜欢
随机推荐
Cs5268 advantages replace ag9321mcq typec multi in one docking station scheme
Report on the "14th five year plan" and scale prospect prediction of China's laser processing equipment manufacturing industry Ⓢ 2022 ~ 2028
Wave animation color five pointed star loader loading JS special effects
终端识别技术和管理技术
游戏公会在去中心化游戏中的未来
shell脚本导入存储过程到数据库
啟動solr報錯The stack size specified is too small,Specify at least 328k
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
PG basics -- Logical Structure Management (trigger)
During Oracle CDC data transmission, the CLOB type field will lose its value during update. There is a value before update, but
一款Flutter版的记事本
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)
声明一个抽象类Vehicle,它包含私有变量numOfWheels和公共函数Vehicle(int)、Horn()、setNumOfWheels(int)和getNumOfWheels()。子类Mot
mysql统计账单信息(下):数据导入及查询
Quickly understand what the compressed list in redis is
Machine learning - performance metrics
Shell script imports stored procedures into the database
Yarn重启applications记录恢复








