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

Резултати

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

Пребарај: #nearearth

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

@cosmomyst · Post #68 · 02.08.2025 г., 13:12

🪐 The asteroid 99942 Apophis, discovered in 2004, is a near-Earth object about 340 meters wide that will make an extremely close pass by Earth in 2029—closer than some satellites! Though it once raised fears of an impact, precise tracking shows it will safely miss us, offering astronomers a rare chance to study such a large asteroid up close as it sweeps just 31,000 kilometers above our planet. ✨ #asteroids⚡#nearEarth⚡#astronomy⚡#nasa⚡#galaxy⚡#stars⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries

Universe Mysteries 🪐

@cosmomyst · Post #119 · 12.08.2025 г., 00:11

🪐 The asteroid 2023 DZ2, discovered in February 2023, is about 40–70 meters wide and made headlines for zooming past Earth closer than the Moon in March of that year. Scientists closely tracked 2023 DZ2 because an object of this size could cause city-wide damage if it ever impacted our planet, making its flyby an important real-world test of our planetary defense systems. ✨ #asteroids⚡#nearEarth⚡#hazards⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries

Universe Mysteries 🪐

@cosmomyst · Post #390 · 07.10.2025 г., 22:21

🪐 In 2018, the asteroid 2018 GE3—a space rock about 50 meters wide, similar in size to the object that exploded over Tunguska in 1908—passed less than half the distance to the Moon from Earth. Discovered just one day before its closest approach, 2018 GE3 highlights the ongoing need to monitor the skies for medium-sized asteroids that can come very close to our planet with little warning. ✨ #asteroids⚡#nearEarth⚡#monitoring⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries 👉more Channels ​

Universe Mysteries 🪐

@cosmomyst · Post #179 · 23.08.2025 г., 20:11

🪐 The asteroid 2023 BU, only a few meters wide, passed less than 3,600 kilometers above Earth's surface in January 2023—closer than many satellites. Despite its tiny size, this near-miss shows how small space rocks can come undetected until they're almost upon us, highlighting the importance of constant sky monitoring for even the smallest cosmic intruders. ✨ #asteroids⚡#nearEarth⚡#monitoring⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries ​

Universe Mysteries 🪐

@cosmomyst · Post #105 · 09.08.2025 г., 13:11

🪐 The asteroid (153814) 2001 WN5, roughly 1 kilometer across, will pass exceptionally close to Earth in 2028—only about 248,000 kilometers away, closer than the Moon. Because of its size and fast approach, 2001 WN5 is classified as a "potentially hazardous asteroid," meaning it could cause regional devastation if it ever struck our planet, so astronomers track its orbit with special care. ✨ #asteroids⚡#nearEarth⚡#hazard⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries

Universe Mysteries 🪐

@cosmomyst · Post #91 · 06.08.2025 г., 20:11

🪐 The asteroid (99942) 2004 MN4, known as Apophis’s “cousin,” (163899) 2003 SD220, is a mountain-sized space rock that approaches Earth’s orbit about every December. Measuring roughly 1.6 kilometers long, its close passes remind scientists how even asteroids with well-known orbits can periodically come within just a few million kilometers of our planet, earning it a spot on NASA's list of potentially hazardous objects. ✨ #asteroids⚡#hazard⚡#nearEarth⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries

Universe Mysteries 🪐

@cosmomyst · Post #494 · 12.11.2025 г., 22:21

🪐 Asteroid (4581) Asclepius, discovered in 1989, is a near-Earth object that passed just 700,000 kilometers from our planet—less than twice the distance to the Moon—shortly after its discovery. Its previous approach in 1989 would have caused a massive explosion if it had impacted, making Asclepius a stark reminder of how some dangerous asteroids can slip past unnoticed until they're already close. ✨ #asteroids⚡#nearearth⚡#impact⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries 👉more Channels ​

Universe Mysteries 🪐

@cosmomyst · Post #261 · 12.09.2025 г., 13:11

🪐 The asteroid (85713) 1998 SS49 is a near-Earth object spanning about 1 kilometer across, and its orbit crosses Earth's path around the Sun. Classified as a potentially hazardous asteroid due to its size and the proximity of its flybys, 1998 SS49 is closely tracked by astronomers to ensure that any changes in its trajectory don’t make it a future threat to our planet. ✨ #asteroid⚡#hazards⚡#nearEarth⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries ​

Universe Mysteries 🪐

@cosmomyst · Post #280 · 16.09.2025 г., 13:11

🪐 Discovered in 2013, asteroid 2013 TX68 drew attention due to its unpredictable orbit, which allowed it to pass within a few million kilometers of Earth—close enough that its next flyby in 2046 will be closely watched. This space rock is roughly 30 meters wide, similar in size to the Chelyabinsk meteor, and while it's not currently on a collision course, its uncertain path highlights the challenges of tracking smaller, potentially hazardous asteroids. ✨ #asteroids⚡#nearearth⚡#planetarydefense⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries ​

Universe Mysteries 🪐

@cosmomyst · Post #272 · 14.09.2025 г., 20:11

🪐 Asteroid (4660) Nereus is a near-Earth object about 330 meters wide, famous for its frequent close approaches to our planet due to its elongated orbit around the Sun. While it poses no immediate danger, Nereus occasionally comes within just a few million kilometers of Earth, making it one of the more closely watched space rocks for future planetary defense planning. ✨ #asteroids⚡#nearearth⚡#planetarydefense⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries ​

Universe Mysteries 🪐

@cosmomyst · Post #611 · 09.01.2026 г., 12:21

🪐 One of the largest objects in space that could threaten Earth is Asteroid (3122) Florence, a giant 4.5-kilometer-wide rock that passed safely at about 7 million kilometers in 2017—but it regularly returns every few decades. Florence's path is well-tracked, but its size means that, if its orbit ever shifted, it could cause catastrophic damage to Earth, making it a key object for ongoing monitoring by planetary defense networks. ✨ #asteroid⚡#nearEarth⚡#monitoring⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries 👉more Channels ​

Universe Mysteries 🪐

@cosmomyst · Post #491 · 11.11.2025 г., 12:21

🪐 Asteroid (2023) JK, discovered in May 2023, is about 200 meters wide and passed within 730,000 kilometers of Earth—closer than twice the distance to the Moon. Its swift approach was detected less than a week before its closest pass, demonstrating how new near-Earth objects can still surprise astronomers and reminding us that even mid-sized space rocks can appear on short notice. ✨ #asteroids⚡#nearearth⚡#spacehazards⚡#nasa⚡#galaxy⚡#stars⚡#astronomy⚡#universe⚡#cosmos⚡#space 👉subscribe Universe Mysteries 👉more Channels ​

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