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

Резултати

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

Пребарај: #extremespace

当前筛选 #extremespace清除筛选
Universe Mysteries 🪐

@cosmomyst · Post #238 · 07.09.2025 г., 20:11

🪐 In the heart of the Milky Way, the magnetar Swift J1818.0−1607 was discovered in 2020 and boasts a magnetic field over a quadrillion (1,000,000,000,000,000) times stronger than Earth's. This incredible power can twist and crack the surface of the magnetar, triggering sudden explosions of X-rays and gamma rays that ripple through space—making magnetars some of the most extreme and mysterious stars known. ✨ #magnetars⚡#neutronstars⚡#extremespace⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries ​

Universe Mysteries 🪐

@cosmomyst · Post #704 · 07.03.2026 г., 22:21

🪐 The magnetar named J1745−2900, discovered near the center of our galaxy close to Sagittarius A*, has one of the most powerful magnetic fields ever measured—enough to disrupt radio signals and, in theory, even deform atoms into thin strings. This type of neutron star is so incredibly magnetic that its field would erase every credit card on Earth from a distance of half the Moon’s span, making J1745−2900 an extreme natural magnet impossible to recreate in any lab. ✨ #magnetar⚡#neutronstar⚡#extremespace⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries 👉more Channels ​