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

Пребарај: #bismut

当前筛选 #bismut清除筛选
MessageInABottle

@mib_messageinabottle · Post #6825 · 20.05.2024 г., 11:39

#ISRAEL IS SENDING ACTIVE DUTY SERVICEMEN TO BRUTALLY #ATTACK PEACEFUL #PROTESTORS ON #US SOIL • Sending troops to the #USA to attack US #Citizens = act of war • Doing so without declaring hostilities first = war crime • Doing so perfidiously out of uniform and lacking insignia = war crime • Targeting civilians = war crime The United States #Congress is obligated to attack #TelAviv and to bring these people to justice. Israeli soldiers attacked US citizens at #UCLA on the night of April 30th and the morning of May 1st. They attacked unarmed protestors with: •baseball bats, •metal pipes, •plywood, •2x4s, •bear spray, •skunk spray, •frozen water bottles, and of course •with their their fists causing SERIOUS BODILY #INJURY and almost killing one 4th Year UCLA student. The name of one such #IDF soldier was Eliran #Bismut. He was in the US not on a VISA but on a 90 day " [...] http://boards.4chan.org/pol/thread/468522229