В прошлом посте говоря "Все вызовы теперь одинаковы" я несколько слукавил. Всё-таки есть в этом зоопарке версий некоторая несовместимость вызов которой просто так не унифицировать. Эти моменты вынесены в отдельный модуль 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
For insulin production at home, the essential materials and tools you need include:
- Raw material: Purified crushed pig pancreas (or other animal pancreas)
- Solvents: Ethanol, chloroform (for extraction and purification)
- Acids and bases: Hydrochloric acid, sodium hydroxide (for hydrolysis and pH adjustments)
- Equipment:
- Centrifuge (to separate insulin from other substances)
- Beakers and flasks
- Water bath (to control temperature during reactions)
- Pipettes (for precise liquid handling)
- Syringes (for measuring and transferring liquids)
- Safety gear: Gloves, goggles, lab coat
- Testing tools: Chromatography setup (e.g., HPLC) or bioassay kits to verify purity and potency
These are the core items needed to extract, purify, and test insulin safely and effectively.
[Source]
@googlefactss
#Insulin#Diabetes#DIY#Health#Science🧪🐖💉
✒️Ambassador Albert P. Khorev's Interview with the TASS News Agency(February 9, 2026)
Key points:
#Priorities
Currently, we are prioritizing contacts in the field of regional security and the fight against international terrorism. We are also coordinating efforts in multilateral forums, primarily the UN and the SCO. Cooperation between the cities and regions of our respective countries also shows promise. Moscow, the Republic of Tatarstan, and Primorsky Krai in Russia, as well as the provinces of Punjab and Sindh in Pakistan, have already expressed interest in this regard.
#Education#Science#Culture
We are paying special attention to strengthening ties in education, science, and culture. We are actively working to promote the Russian language in Pakistan, including through the federal project "Russian Teachers Abroad." We also facilitate the organization of joint scientific conferences and cultural and sporting events.
#PakistanStillMills#Insulin
In the coming years, it is crucial to promote mutual trade, develop reliable alternative payment mechanisms, and implement large-scale joint projects. These projects include the revival of the Pakistan Still Mills, establishing rail connections between Russia and Pakistan, collaborating on hydropower, and creating joint ventures to produce medicines, including insulin.
#Oil
Pakistan is interested in cooperating with our country in oil exploration and production. Russia is ready to help Pakistan strengthen its energy sovereignty. We already have positive experience in this area. It was the USSR that helped Pakistan establish the state-owned oil and gas company, the Oil and Gas Development Company Limited, in the 1960s, and it assisted in discovering a number of oil and gas fields in Pakistan.
#SCO
We acknowledge the constructive collaboration with our Pakistani partners within the SCO. Ensuring regional security and combating terrorism and organized transnational crime are our priorities.
#BRICS#NewDevelopmentBank
Russia welcomes Pakistan's interest in joining BRICS. One practical step toward integrating Pakistan into BRICS could be Islamabad's accession to the New Development Bank, which finances infrastructure projects in developing countries.
#DiplomatsDay
On February 10, the Russian Foreign Service celebrates Diplomats' Day. On this festive occasion, I would like to wish my colleagues in Moscow and at foreign missions happiness, good health, endless inspiration, and success in promoting Russia's position on the world stage.
#RussiaPakistan