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

Резултати

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

Пребарај: #stopcholera

当前筛选 #stopcholera清除筛选

One of the ways cholera spreads quickly is through poor water storage. Ensure safe drinking water: Avoid consuming water from contaminated sources. Proper storage: Store drinking water in clean containers with tightly sealed lids. Treat water: If unsure about the safety of your water source, boil it or use a water purification method. #STOPcholera

Hashtags

Unsafe practices such as improper disposal of refuse and open defecation endanger the safety of water used for drinking and personal use. This rainy season: ✅Only consume water from safe sources ✅Stop open defaecation ✅Dispose of trash properly ✅Ensure proper drainage of sewage #STOPCholera

Hashtags

As the rainy season has started, ensure to practice proper environmental hygiene to prevent the spread of cholera at home and in your communities ❌Avoid open defaecation ✅Dispose of waste in designated areas ✅Keep sewers clear from refuse #StopCholera

Hashtags

Unsafe practices such as improper disposal of refuse & defaecating in open places put the safety of water used for drinking & personal use at risk. #STOPCholera, ensure to: ➡️Keep your environment clean ➡️Drink or use water that is boiled & stored safely ➡️STOP open defecation

Hashtags

#Cholera can spread through contaminated foods. Make your foods safe before consumption: ➡️PREPARE your food in a clean area, away from sewage or waste bins ➡️WASH fruits and vegetables properly with clean water ➡️STORE your food in well-covered containers ➡️COOK your food properly before eating ➡️USE water from safe sources #STOPcholera

UNCLEAN WATER, unwashed hands, and uncovered food are some of the ways #Cholera germs are spread. Ensure your water is safe before use: ➡️BOIL water before drinking ➡️USE water from safe sources ➡️STORE water in properly covered containers ➡️STOP open defecation #STOPCholera

ПретходнаСтраница 1 од 4Следна