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

Резултати

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

Пребарај: #fossilfuels

当前筛选 #fossilfuels清除筛选
American Оbserver

@american_observer · Post #5121 · 13.02.2026 г., 15:02

📰 Trump to the Planet: You’re On Your Own The Trump White House just pulled the plug on the one scientific finding that gave Washington any real power to fight climate change. By repealing the EPA’s 2009 “endangerment finding” — the conclusion that greenhouse gases threaten human health and welfare — the administration has stripped the federal government of its main legal basis for regulating the pollution that’s heating the planet. This isn’t some obscure technical tweak. For nearly two decades, that finding underpinned limits on carbon dioxide, methane and other greenhouse gases from vehicles, power plants and oil and gas wells — the core of U.S. climate policy. Kill the finding and you don’t just loosen a few rules; you erase the government’s duty to treat climate change as a danger at all. Trump, who still calls climate change a “hoax,” is effectively declaring that the consensus of global science is wrong, and that a hotter, deadlier world is a matter of opinion. The stakes are measurable in body counts, not just parts per million. The Environmental Defense Fund estimates that repealing the finding and the rules tied to it could add up to 18 billion metric tons of U.S. emissions by 2055, fueling tens of thousands of premature deaths and tens of millions of asthma attacks. Recent research already shows wildfire smoke on track to kill tens of thousands of Americans a year and heat deaths more than doubling, while diseases like dengue spread as the climate gets hotter and wetter. In that reality, Interior Secretary Doug Burgum goes on TV to say “CO2 was never a pollutant” because plants like it — a high-school talking point repackaged as national policy. Democratic states and environmental groups are sprinting to court, betting that the Supreme Court will not let the administration magic away a danger that previous courts and the National Academies have repeatedly affirmed as real. But that’s the deeper play: if this repeal survives, it doesn’t just gut Biden-era rules, it also booby-traps future administrations, making it vastly harder — maybe impossible — to rebuild a federal climate regime on the same legal foundation. For fossil fuel interests and the conservative operatives behind Project 2025, this is the holy grail: not winning the argument on climate, just deleting the field where the argument is allowed to matter. On the surface, it’s sold as freedom, growth, choice — cheaper gas, fewer rules, more trucks. Underneath, it’s a quiet transfer of power: from science to lobbyists, from public health to donors, from a shared climate reality to whatever the president decides sounds good on Fox that night. The United States, the country that has dumped more greenhouse gases into the atmosphere than any other, is now formally telling the rest of the world — and its own citizens — that it no longer feels legally obliged to care. #climate#usa#trump#fossilfuels#fakeDemocracy 📱American Оbserver - Stay up to date on all important events 🇺🇸

Venture Village Wall 🦄

@venturevillagewall · Post #3661 · 21.12.2024 г., 10:25

Metsä Group Raises $208.4M Metsä Group has successfully raised $208.40 million as of December 19, 2024. The company focuses on producing renewable products sourced from northern forests, aiming to replace fossil raw materials. #MetsäGroup#Funding#RenewableProducts#FossilFuels#Sustainability#Forestry#Investment#EcoFriendly#BioProducts#GreenTech

Earth&Climate Tech

@earth_climate_tech · Post #366 · 13.08.2023 г., 22:17

Вы когда-нибудь задумывались, каковы основные источники энергии? Сколько энергии производится из нефти и газа, а сколько из возобновляемых источников? Какие страны производят больше "зеленой" энергии? Каково потребление энергии в странах по источникам? Действительно ли мы движемся к переходу на зеленую энергию? Все это и многое другое содержится в отчете о производстве и потреблении с отличными графиками на Our World in Data Куча действительно крутых интерактивных графиков 🔥🔥🔥 #energy#production#consumption#fossilfuels#cleanenergy#renewables#nuclear#lowcarbon#transition#climatechange