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

Резултати

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

Пребарај: #volcanoes

当前筛选 #volcanoes清除筛选
Amazing Geography 🌍

@amazingeo · Post #424 · 30.10.2025 г., 20:31

🌍 One of the youngest islands on Earth, Hunga Tonga-Hunga Haʻapai, formed in 2015 after an undersea volcanic eruption. New land like this is rare and offers scientists a natural laboratory. ✨ #islands⚡#volcanoes⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography 👉more Channels ​

Interesting Planet 🌍

@interesting_planet_facts · Post #500 · 04.08.2025 г., 20:22

🌎 The maleo bird of Sulawesi uses volcanic heat to hatch its eggs! It buries them in warm sand or soil, letting Earth's warmth do the work, and the chicks dig themselves out and run off ready to face the world—a rare strategy among birds. ✨ #volcanoes⚡#birds⚡#adaptation 👉subscribe Interesting Planet

Interesting Planet 🌍

@interesting_planet_facts · Post #490 · 03.08.2025 г., 03:22

🌎 Towering above Tanzania, Mount Kilimanjaro is the world’s tallest free-standing mountain. Unlike mountain ranges, it rises alone from the plains, formed by ancient volcanic eruptions. Its snowy peak is a surprising sight just south of the equator. ✨ #geology⚡#volcanoes⚡#Africa 👉subscribe Interesting Planet

Interesting Planet 🌍

@interesting_planet_facts · Post #1221 · 14.01.2026 г., 12:11

🌎 Rising from an ancient volcanic crater, Aogashima is a remote Japanese island village with about 170 residents. The island’s school has fewer than 10 students, and access is by boat or helicopter due to rough seas and no airport. ✨ #geography⚡#settlements⚡#volcanoes 👉subscribe Interesting Planet 👉more Channels ​

Amazing Geography 🌍

@amazingeo · Post #352 · 09.10.2025 г., 18:31

🌍 Mount Etna in Italy is one of the world’s most active volcanoes, but it’s also growing taller each year as repeated eruptions pile new layers of lava onto its summit. ✨ #mountains⚡#volcanoes⚡#geology⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography 👉more Channels ​

Interesting Planet 🌍

@interesting_planet_facts · Post #1147 · 20.12.2025 г., 18:11

🌎 Layers of volcanic ash preserved in sediments create natural records of Earth's explosive history. By analyzing ash layers, scientists can pinpoint ancient eruptions and trace how ash traveled across continents. Some distant ash deposits reveal supervolcano eruptions that spread material for thousands of kilometers. ✨ #volcanoes⚡#geology⚡#sediments 👉subscribe Interesting Planet 👉more Channels ​

Interesting Planet 🌍

@interesting_planet_facts · Post #461 · 29.07.2025 г., 20:22

🌎 At the heart of Africa, Lake Nyos hides a deadly secret—an underwater layer of carbon dioxide gas that once erupted, suffocating everything nearby in 1986. This rare “limnic eruption” happens when gas builds up at depth and suddenly bursts to the surface, releasing an invisible, odorless cloud with devastating effects. ✨ #volcanoes⚡#disasters⚡#geology 👉subscribe Interesting Planet

Amazing Geography 🌍

@amazingeo · Post #345 · 07.10.2025 г., 20:31

🌍 Earth’s mountain-building processes are still active—over 80% of volcanoes erupt near tectonic plate boundaries, constantly creating new land and even islands in the world’s oceans. ✨ #geology⚡#volcanoes⚡#oceans⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography 👉more Channels ​

Interesting Planet 🌍

@interesting_planet_facts · Post #1229 · 16.01.2026 г., 22:11

🌎 Around 252 million years ago, the Permian-Triassic extinction wiped out about 90% of marine species and 70% of land vertebrates. Massive volcanic eruptions in Siberia released greenhouse gases that drove rapid global warming, ocean acidification, and low oxygen levels—making it the largest extinction event in Earth's history. ✨ #extinction⚡#volcanoes⚡#paleoclimate 👉subscribe Interesting Planet 👉more Channels ​

Interesting Planet 🌍

@interesting_planet_facts · Post #1172 · 29.12.2025 г., 12:11

🌎 In northeast Azerbaijan, the Gobustan Mud Volcanoes regularly erupt with cool, viscous mud instead of lava. These eruptions can blast columns up to 200 meters high. About half of the world’s estimated 1,000 mud volcanoes are concentrated in this region, producing unique surface features and even spontaneous flames when natural gas ignites. ✨ #Azerbaijan⚡#volcanoes⚡#geology 👉subscribe Interesting Planet 👉more Channels ​

Amazing Geography 🌍

@amazingeo · Post #466 · 20.11.2025 г., 20:31

🌍 The ring-shaped chain of volcanoes called the "Ring of Fire" circles the Pacific Ocean, hosting about 75% of all active volcanoes on Earth and causing frequent earthquakes and eruptions. ✨ #volcanoes⚡#mountains⚡#tectonics⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography 👉more Channels ​

Amazing Geography 🌍

@amazingeo · Post #121 · 26.08.2025 г., 16:12

🌍 Mount Erebus in Antarctica is one of the world’s southernmost active volcanoes. Its lava lake stays liquid year-round, despite harsh temperatures that often plunge far below freezing. ✨ #volcanoes⚡#Antarctica⚡#mountains⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography🌍 ​

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