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

Пребарај: #alikhamenei

当前筛选 #alikhamenei清除筛选
Google Facts™ [ ️@googlefactss🌎]

@googlefactss · Post #40731 · 03.03.2026 г., 17:02

Ali Hosseini Khamenei was born on 19 April 1939 in Mashhad, Iran. He was a Shiite cleric and political leader. He took part in the 1979 Iranian Revolution. He later became President of Iran from 1981 to 1989 during the Iran–Iraq War. On 4 June 1989, after the death of Ruhollah Khomeini, he was chosen as the 2nd Supreme Leader of Iran. He held this role until 28 February 2026. As Supreme Leader, he had authority over the military, judiciary, state media, intelligence services, and foreign policy. He oversaw Iran’s nuclear program and strengthened the Islamic Revolutionary Guard Corps. His government carried out crackdowns on protests and dissent. He was reported killed on 28 February 2026 during Israeli missile attacks in Tehran. His death was confirmed on 1 March 2026. His son is replacing him. 🏛️🇮🇷📜 [Read more] @googlefactss #AliKhamenei#Iran#SupremeLeader#dictator#IranHistory#MiddleEast#freeIran#LiberateWomen#protest