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

Резултати

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

Пребарај: #foodfacts

当前筛选 #foodfacts清除筛选
Google Facts™ [ ️@googlefactss🌎]

@googlefactss · Post #40706 · 26.02.2026 г., 15:04

Edible bird’s nests are made from hardened saliva of edible-nest swiftlets. They are harvested in limestone caves or special bird houses in Southeast Asia. People use them in bird’s nest soup in Chinese cuisine. The nests are rare and valuable. The swiftlets live in Indonesia, Borneo, Java, and the Malay region. 🪹🍲🌏 [Read more 1] [Read more 2] @googlefactss #FoodFacts#Swiftlet#Indonesia#DidYouKnow#Asia

Google Facts™ [ ️@googlefactss🌎]

@googlefactss · Post #40279 · 08.12.2025 г., 19:00

Oranges are not always naturally orange. In some places, they stay green even when ripe because of the weather. To make them look orange, farmers use either a safe red dye called Citrus Red No. 2 or treat the fruit with ethylene gas, which helps the skin change color faster. [Read more] @googlefactss🍊🔴#Oranges#FoodFacts#FDA#FruitColoring

Google Facts™ [ ️@googlefactss🌎]

@googlefactss · Post #40460 · 02.01.2026 г., 07:03

Lactose-free products have no lactose, the sugar in milk, so people with lactose intolerance can digest them easily. Dairy-free products have no milk or milk ingredients at all, good for people allergic to milk or who avoid animal products. Lactose-free is for lactose intolerance; dairy-free is for milk allergy or vegan diets. 🥛🚫🌱 @googlefactss #LactoseFree#DairyFree#Health#Nutrition#FoodFacts

Google Facts™ [ ️@googlefactss🌎]

@googlefactss · Post #40790 · 13.03.2026 г., 20:24

Himalayan salt comes in several natural colors based on minerals inside the crystals. White salt has very few impurities. Pink salt gets its color from small amounts of iron oxide. Dark pink or red salt has higher iron content. Grey salt contains mixed minerals. Black salt contains sulfur compounds and has a strong egg-like smell used in South Asian cooking. 🧂🌈🔬 [Read more] @googlefactss #facts#science#salt#himalayansalt#minerals#foodfacts#didyouknow

Google Facts™ [ ️@googlefactss🌎]

@googlefactss · Post #40724 · 02.03.2026 г., 21:40

In China, a street food called suodiu uses small stones stir-fried with spices. People suck the flavor off the stones and then spit them out. The stones are not meant to be eaten. The name *suodiu* means “suck and dispose.” 🪨🌶️🍴 [Source1] [Source2] @googlefactss #Suodiu#ChinaFood#StreetFood#FoodFacts#Offbeat#EatingTrends

Google Facts™ [ ️@googlefactss🌎]

@googlefactss · Post #40770 · 09.03.2026 г., 23:01

Hákarl is a traditional Icelandic food made from fermented Greenland shark. The fresh shark meat is poisonous. It is buried with stones to press out fluids and left to ferment for weeks, then hung to dry for months. This process removes the poison and makes it safe to eat. It has a strong ammonia smell and fishy taste. People eat it in small cubes, sometimes with a drink called brennivín. Greenland sharks grow very slowly. They can live up to 400 years and reach sexual maturity around 150 years. Because of this and overfishing, their populations recover very slowly. The species is considered vulnerable, and hunting is unsustainable. Conservation groups are calling for protections to prevent the Greenland shark from becoming extinct. 🦈🇮🇸🥃 [Read more] @googlefactss #Hákarl#Iceland#FermentedShark#TraditionalFood#FoodFacts#GreenlandShark#Conservation