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

Резултати

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

Пребарај: #homemaking

当前筛选 #homemaking清除筛选

Making yeast water is fairly easy and it can be refreshed many times. It is better digestable compared to industrial produced yeast from the supermarket. You need 5-8 days to prepare your own yeast water. You probably have the ingredients for it already at home. Ingredients: 1 l lukewarm water 2 dates or 50g of other fruits or flowers 50 g sugar or honey 1 glass bottle (milk bottle) Put all ingredients into the bottle, shake it and close it. Let it rest on room temperature for 5-8 days and shake the bottle every morning and evening to let the gas escape. It should develop a sweet-sour smell. Remove the fruits and use the yeast water instead of the required amount of water in your baking recipe. Keep in mind to let your dough rest over night before baking. Keep the rest of the yeast water, fill with it fresh water and sugar, then you can use it many times. You can store it in the refridgerator. Happy baking! #homemaking#baking#homestead