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 слични објави

Пребарај: #johnratcliffe

当前筛选 #johnratcliffe清除筛选
Marwa Osman/MidEaStream

@Marwa_OsmanLB · Post #4191 · 27.03.2025 г., 14:13

A new security scandal has hit the #Trump administration as media reports a major data breach exposing senior U.S. security officials’ information online. According to an investigation by the German magazine #DerSpiegel, phone numbers, email addresses, and even passwords belonging to top U.S. security officials were found online. Among those affected are National Security Advisor #MikeWaltz, Vice-President #JDVance, #CIA Director #JohnRatcliffe, White House chief of staff #SusieWiles, U.S. Intelligence Coordinator #TulsiGabbard, and Secretary of Defense #PeteHegseth. The group debated policy and discussed operational details about the impending US military strike on #Yemen – conversations that provided a rare near-real-time look at the inner workings of Trump's senior #nationalsecurity team.