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

Пребарај: #halow

当前筛选 #halow清除筛选
Libreware

@libreware · Post #1583 · 04.05.2026 г., 15:28

FaceTime Without the Internet | Data Slayer FaceTiming without Apple... I tested whether consumer apps like FaceTime, Signal, WhatsApp, and Zoom work on an off-grid #HaLow#mesh#network with zero internet. The key discovery: FaceTime and Signal connect peer-to-peer if they can find each other on any local network — Apple's servers aren't in the loop. The climax was a two-car highway test where Emilia and I held a FaceTime call at 70 mph, bridged only by Haven nodes and sub-gigahertz antennas. The conclusion: the "loophole" isn't a hack — it's the original peer-to-peer design we forgot about once we handed the internet to five companies. #MeshNetwork#OffGrid#P2P