当前位置:网站首页>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)
边栏推荐
- Tencent always takes epoll, which is annoying
- Wang Xing's infinite game ushers in the "ultimate" battle
- Content Audit Technology
- 一款Flutter版的记事本
- codeforces -- 4B. Before an Exam
- 机器学习—性能度量
- Example code of second kill based on MySQL optimistic lock
- Report on the "14th five year plan" and scale prospect prediction of China's laser processing equipment manufacturing industry Ⓢ 2022 ~ 2028
- SVG钻石样式代码
- Sharing with the best paper winner of CV Summit: how is a good paper refined?
猜你喜欢

Operator-1初识Operator

Google Earth engine (GEE) - Global Human Settlements grid data 1975-1990-2000-2014 (p2016)

Vs code set code auto save

Shell script imports stored procedures into the database

Manage nodejs with NVM (downgrade the high version to the low version)
![leetcode:241. Design priority for operation expression [DFS + Eval]](/img/d0/8dedeba7ecedccd25e0e3e96ff3362.png)
leetcode:241. Design priority for operation expression [DFS + Eval]

What is the future development direction of people with ordinary education, appearance and family background? The career planning after 00 has been made clear

The popular major I chose became "Tiankeng" four years later

The future of game guild in decentralized games

Look at the sky at dawn and the clouds at dusk, and enjoy the beautiful pictures
随机推荐
c语言学习
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)
Quickly understand what the compressed list in redis is
Meta再放大招!VR新模型登CVPR Oral:像人一样「读」懂语音
Declare an abstract class vehicle, which contains the private variable numofwheel and the public functions vehicle (int), horn (), setnumofwheel (int) and getnumofwheel (). Subclass mot
Tencent always takes epoll, which is annoying
Localtime can't re-enter. It's a pit
MySQL statistical bill information (Part 2): data import and query
Run PowerShell script prompt "because running script is prohibited on this system" solution
Global and Chinese n-butanol acetic acid market development trend and prospect forecast report Ⓧ 2022 ~ 2028
China NdYAG crystal market research conclusion and development strategy proposal report Ⓥ 2022 ~ 2028
我花上万学带货:3天赚3元,成交靠刷单
There are still many things to be done in the second half of the year
Logstash error: cannot reload pipeline, because the existing pipeline is not reloadable
The 14th five year plan of China's environmental protection industry and the report on the long-term goals for 2035 Ⓖ 2022 ~ 2028
基于mysql乐观锁实现秒杀的示例代码
Redis exploration: cache breakdown, cache avalanche, cache penetration
Global and Chinese styrene acrylic lotion polymer development trend and prospect scale prediction report Ⓒ 2022 ~ 2028
Terminal identification technology and management technology
nexus搭建npm依赖私库