TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #45 · 2 мар.

В фреймворке PyQt (и PySide тоже) часто встречается настройка чего-либо с помощью так называемых флагов. widget.setWindowFlags(Qt.Window) Взаимодействие нескольких флагов делается с помощью бинарных (или побитовых) операторов. Несколько флагов можно указать с помощью оператора "|" list_item.setFlags(Qt.ItemIsSelectable | Qt.ItemIsEnabled) исключить флаг из уже имеющегося набора можно так list_item.setFlags(list_item.flags() ^ Qt.ItemIsEnabled) Добавить новый флаг к имеющимся можно так list_item.setFlags(list_item.flags() | Qt.ItemIsEnabled) А проверка наличия делается так is_enabled = item.flags() & Qt.ItemIsEnabled > 0 Почему именно так? Всё дело в том как именно работают побитовые операторы. Но об этом в следующем посте. #qt

Hashtags

Резултати

Пронајдени 10 слични објави

Пребарај: #handwashing

当前筛选 #handwashing清除筛选

Let's work together to prevent the spread of #Lassafever. Be a guardian of proper sanitation in your community and promote frequent #Handwashing with soap and running water. Read our latest #LassaFever situation report: https://ncdc.gov.ng/diseases/sitreps/?cat=5&name=An%20update%20of%20Lassa%20fever%20outbreak%20in%20Nigeria

Let's work together to prevent the spread of #Lassafever. Be a guardian of proper sanitation in your community and promote frequent #Handwashing with soap and running water. Read our latest #LassaFever situation report: https://ncdc.gov.ng/diseases/sitreps/?cat=5&name=An%20update%20of%20Lassa%20fever%20outbreak%20in%20Nigeria

#Handwashing with soap under clean, running water is very vital to the prevention of #cholera. Important #handwashing moments⬇️ ✅While caring for the ill ✅After using the toilet ✅Before food preparation ✅Before and after eating ✅After touching high-contact surfaces #STOPcholera

#Handwashing is a basic and effective tool against infections. If we do not become sick, we would not need to use #antimicrobials. Encourage your loved ones to practice frequent #handwashing with soap under running water. Do your part to prevent #AntimicrobialResistance

#HandHygiene with clean, running water is very vital to the prevention of #cholera. Important #handwashing moments⬇️ ✅While caring for the ill ✅After using the toilet ✅Before food preparation ✅Before and after eating ✅After touching high contact surfaces #TakeResponsibility

#HandHygiene with soap under clean, running water is very vital to the prevention of #cholera. Important #handwashing moments⬇️ ✅While caring for the ill ✅After using the toilet ✅Before food preparation ✅Before and after eating ✅After touching high contact surfaces #TakeResponsibility

#HandHygiene with clean, running water is very vital to the prevention of #cholera. Important #handwashing moments⬇️ ✅While caring for the ill ✅After using the toilet ✅Before food preparation ✅Before and after eating ✅After touching high contact surfaces #TakeResponsibility

#HandWashing remains the most basic and effective means to prevent the spread of infections. Frequent #handwashing with soap under running water at home, work, health facilities, gatherings, and public spaces is highly important to stay healthy. Let us all make #cleanhands a regular habit. It protects us all. #TakeResponsibility

#HandWashing is a basic &effective tool against infections. If we don't become sick, we would not need to use #antibiotics. Let us promote the practice of #handwashing in our homes & communities to prevent #AntimicrobialResistance together. #WorldAntimicrobialAwarenessWeek2022