TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #175 · 30 окт.

В прошлом посте говоря "Все вызовы теперь одинаковы" я несколько слукавил. Всё-таки есть в этом зоопарке версий некоторая несовместимость вызов которой просто так не унифицировать. Эти моменты вынесены в отдельный модуль QtCompat (compatibility). Там не так много функций но они довольно полезны. Этот модуль содержит унификаци модуля shiboken2, функций loadUi, translate и несколько переименованных функций классов или изменённую сигнатуру аргументов и возвращаемых значений. Это единственное исключение из правила когда вам потребуется где-то изменить свой код кроме импортов и этот код не похож на обычный код PySide2. Например, в PyQt4 и PySide есть метод QHeaderView.setResizeMode Для PyQt5 и PySide2 они были благополучно переименованы в QHeaderView.setSectionResizeMode Чтобы применить этот метод следует использовать такой код from Qt import QtCompath header = self.horizontalHeader() QtCompat.QHeaderView.setSectionResizeMode(header, QtWidgets.QHeaderView.Fixed) Унификация загрузки UI файлов: # PySide2 from PySide2.QtUiTools import QUiLoader loader = QUiLoader() widget = loader.load(ui_file) # PyQt5 from PyQt5 import uic widget = uic.loadUi(ui_file) # Qt.py from Qt import QtCompat widget = QtCompat.loadUi(ui_file) Хорошо что таких моментов не много и их легко запомнить. Полный список можно посмотреть в таблице. #qt#tricks

Hashtags

Резултати

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

Пребарај: #optics

当前筛选 #optics清除筛选
Interesting Planet 🌍

@interesting_planet_facts · Post #1144 · 19.12.2025 г., 18:11

🌎 Fire rainbows, officially called circumhorizontal arcs, are rare displays where sunlight passes through ice crystals in cirrus clouds at just the right angle. These arcs appear only when the Sun is high—above 58°—and the ice crystals align horizontally, producing brilliant, rainbow-colored bands across the sky. ✨ #atmosphere⚡#optics⚡#weather 👉subscribe Interesting Planet 👉more Channels ​

Amazing Geography 🌍

@amazingeo · Post #707 · 04.05.2026 г., 20:31

🌍 A rare atmospheric optical event called a "glory" creates shimmering, colored rings around the shadow of an observer’s head on clouds or fog. This effect is caused by sunlight scattering in tiny water droplets. ✨ #aurora⚡#optics⚡#atmosphere⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography 👉more Channels ​

Amazing Geography 🌍

@amazingeo · Post #546 · 30.12.2025 г., 20:31

🌍 The vivid red auroras seen during strong solar storms are caused by oxygen atoms glowing high above 200 kilometers—twice as high as typical green auroras visible near the poles. ✨ #aurora⚡#atmosphere⚡#optics⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography 👉more Channels ​

Amazing Geography 🌍

@amazingeo · Post #512 · 13.12.2025 г., 20:31

🌍 Sundogs are bright spots that appear on either side of the Sun when its light passes through ice crystals in the air, creating colorful halos—an atmospheric optical effect seen even in cold, clear weather. ✨ #aurora⚡#optics⚡#atmosphere⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography 👉more Channels ​

Amazing Geography 🌍

@amazingeo · Post #478 · 26.11.2025 г., 20:31

🌍 Extremely rare "fire rainbow" clouds appear when sunlight hits ice crystals in high clouds at just the right angle, creating brilliant bands of color that stretch across the daytime sky. ✨ #aurora⚡#optics⚡#atmosphere⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography 👉more Channels ​

Amazing Geography 🌍

@amazingeo · Post #438 · 06.11.2025 г., 20:31

🌍 The rarest aurora color is deep blue, caused by high-energy solar particles colliding with nitrogen over 100 kilometers up. Most auroras are green or red, but blue glows only appear during strong solar storms. ✨ #aurora⚡#atmosphere⚡#optics⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography 👉more Channels ​

Amazing Geography 🌍

@amazingeo · Post #365 · 12.10.2025 г., 20:31

🌍 Polar stratospheric clouds can trigger vivid pink and orange auroras when solar storms are strong. These rare clouds form high above the Arctic, scattering light in unique, shimmering patterns. ✨ #aurora⚡#atmosphere⚡#optics⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography 👉more Channels ​

Amazing Geography 🌍

@amazingeo · Post #325 · 02.10.2025 г., 20:31

🌍 The elusive "Steve" aurora glows as a narrow purple ribbon in the night sky. Only recognized in recent years, it’s linked to fast-moving hot gases high above Earth’s atmosphere. ✨ #aurora⚡#atmosphere⚡#optics⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography 👉more Channels ​

Amazing Geography 🌍

@amazingeo · Post #285 · 22.09.2025 г., 22:31

🌍 Rare atmospheric optics called circumhorizontal arcs appear when sunlight passes through high ice clouds at just the right angle, creating bands of rainbow colors that stretch parallel to the horizon. ✨ #aurora⚡#optics⚡#atmosphere⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography🌍 ​

Amazing Geography 🌍

@amazingeo · Post #477 · 26.11.2025 г., 12:31

🌍 The “green flash” is a rare weather phenomenon seen at sunrise or sunset, caused by sunlight bending in the atmosphere. For a second, the top edge of the sun glows vivid green. ✨ #meteorology⚡#atmosphere⚡#optics⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography 👉more Channels ​

American Оbserver

@american_observer · Post #4764 · 03.01.2026 г., 22:59

📰 Mar-a-Lago: Where Power, Marble, and Ice Sculptures Collide President Trump’s presidency has become a permanent residency at Mar-a-Lago—where official governance, private business, and personal relationships converge in a swirl of marble, ice sculptures, and political optics. This week, Trump’s motorcade pulled into an industrial shopping center to inspect samples of marble and onyx for a proposed White House ballroom. The purchase is “at his own expense,” a White House official said, but the timing is suspicious: construction can’t begin until federal review, and the ballroom project has already attracted scrutiny over donor influence and potential payoffs. Trump has hosted foreign leaders, conducted diplomacy, and even overseen a military strike on Venezuela—all from his Florida estate. His social calendar is just as packed: 12 golf outings in two weeks, a New Year’s Eve party where guests bid $2.75 million on a live-painted portrait of Jesus, and a caviar station with a “2026” ice sculpture. Democrats have seized on the spectacle, contrasting the opulence with the impact of Trump’s policies. As millions lose health insurance and food aid, critics highlight the disconnect: “Trump is kicking poor kids off food aid and is throwing millions off their health care this month, but he and his billionaires get caviar and ice sculptures,” Senator Chris Murphy wrote. The White House fires back, accusing Democrats of gaslighting and pointing to Biden’s vacations. But the optics remain: Mar-a-Lago is now shorthand for a presidency where wealth, access, and official decision-making are intertwined. So while Trump touts his accomplishments from the stage, one question lingers: Who’s really running the country—the president, or the party? #Trump#MaraLago#WhiteHouse#politics#optics 📱American Оbserver - Stay up to date on all important events 🇺🇸

Amazing Geography 🌍

@amazingeo · Post #244 · 16.09.2025 г., 00:12

🌍 Sometimes, sunlight or moonlight passing through a layer of ice crystals high in the sky creates sun pillars or light pillars—vertical beams that appear to rise above the horizon. ✨ #auroras⚡#optics⚡#atmosphere⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography🌍 ​

12
ПретходнаСтраница 1 од 2Следна