当前位置:网站首页>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)
边栏推荐
- [today in history] July 1: the father of time sharing system was born; Alipay launched barcode payment; The first TV advertisement in the world
- leetcode 322. Coin change (medium)
- leetcode:241. Design priority for operation expression [DFS + Eval]
- Development trend and market demand analysis report of China's high purity copper industry Ⓕ 2022 ~ 2028
- Simple two ball loading
- Analysis report on the development prospect and investment strategic planning of China's wafer manufacturing Ⓔ 2022 ~ 2028
- MySQL gap lock
- Vs code set code auto save
- 我花上万学带货:3天赚3元,成交靠刷单
- Analysis report on production and marketing demand and investment forecast of global and Chinese diamond powder industry Ⓤ 2022 ~ 2027
猜你喜欢

be based on. NETCORE development blog project starblog - (13) add friendship link function

Redis explores cache consistency

硬件开发笔记(九): 硬件开发基本流程,制作一个USB转RS232的模块(八):创建asm1117-3.3V封装库并关联原理图元器件

Project deployment is not difficult at all!

Hardware development notes (9): basic process of hardware development, making a USB to RS232 module (8): create asm1117-3.3v package library and associate principle graphic devices
![Idea of [developing killer]](/img/74/f4a18afd2b86373996e4ca62b50f88.png)
Idea of [developing killer]

Shell script imports stored procedures into the database

Colorful five pointed star SVG dynamic web page background JS special effect

Look at the sky at dawn and the clouds at dusk, and enjoy the beautiful pictures

codeforces -- 4B. Before an Exam
随机推荐
Google Earth Engine(GEE)——全球人类居住区网格数据 1975-1990-2000-2014 (P2016)
Flow management technology
从数据库中更新一条数据,用cdc会同时获得op字段分别为d和c的两条数据吗?我记得之前是只有op为u
我选的热门专业,四年后成了“天坑”
Shangtang technology crash: a script written at the time of IPO
The sky is blue and misty
Wave animation color five pointed star loader loading JS special effects
5G工业网关的科技治超应用 超限超重超速非现场联合执法
Project deployment is not difficult at all!
Redis explores cache consistency
leetcode 322. Coin Change 零钱兑换(中等)
Idea of [developing killer]
图灵奖得主Judea Pearl:最近值得一读的19篇因果推断论文
Logstash error: cannot reload pipeline, because the existing pipeline is not reloadable
Router. use() requires a middleware function but got a Object
Simple Fibonacci (recursive)
JS变色的乐高积木
Redis exploration: cache breakdown, cache avalanche, cache penetration
Have you ever encountered the problem that flynk monitors the PostgreSQL database and checkpoints cannot be used
Wang Xing's infinite game ushers in the "ultimate" battle