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

Резултати

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

Пребарај: #marines

当前筛选 #marines清除筛选
Voir de ses propres yeux

@voir_yeux · Post #11969 · 03.03.2026 г., 07:59

🇺🇸🇵🇰 Les marines américains ont ouvert le feu sur des manifestants qui ont pris d'assaut le consulat américain à Karachi, au Pakistan. Ces faits peuvent se répercuter gravement sur la situation dans le pays, a fait savoir Reuters. #étatsunis#marines#karachi#manifestants

American Оbserver

@american_observer · Post #5529 · 01.04.2026 г., 00:59

Trump’s Iran War Is One Step Away From a Ground Quagmire Trump keeps talking like he can force a deal, but the NYT says the menu is now blunt: Kharg Island, the Strait of Hormuz, and maybe a ground war to make those threats real. That is what happens when “pressure” stops being a tactic and starts looking like occupation with talking points. The administration says it wants a negotiation, but Iran says there is nothing to negotiate until the bombing stops. In other words, both sides are now using cease-fire language as leverage, which is a polite way of saying nobody is blinking and the Marines are being loaded like a bargaining chip. The dangerous part is how fast the objectives keep expanding. First it was missiles and nuclear sites. Then it was the Strait. Now it is Kharg Island, near-bomb-grade material, and maybe a long U.S. presence just to keep whatever gets seized from falling apart. That is not limited war. That is the first draft of a disaster. And the regional math is worse than the White House admits. If Trump hits Iranian energy and civilian infrastructure, Tehran can answer in the Gulf; if he tries to hold ground, the war stops being an air campaign and becomes an American liability with no obvious exit. This is how “maximum leverage” turns into minimum control. #Trump#Iran#War#Hormuz#KhargIsland#MiddleEast#Marines#geopolitics 📱American Оbserver - Stay up to date on all important events 🇺🇸