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

Резултати

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

Пребарај: #empathy

当前筛选 #empathy清除筛选
Interesting Planet 🌍

@interesting_planet_facts · Post #823 · 27.09.2025 г., 18:11

🌎 Mirror neurons in the human brain activate both when performing an action and when observing someone else perform that action. These specialized brain cells are linked to empathy, learning, and understanding intentions of others. Mirror neurons were first identified in the 1990s in monkeys before similar systems were found in humans. ✨ #neuroscience⚡#empathy⚡#learning 👉subscribe Interesting Planet 👉more Channels ​

Venture Village Wall 🦄

@venturevillagewall · Post #3463 · 19.12.2024 г., 13:56

$500K Funding Round Announcement ShowAndTell has raised $500K in funding as of December 4, 2024. This initiative focuses on providing an empathetic treatment coordinator for every patient, prioritizing patient education and trust-building, even outside of clinical settings. For more information visit their website: ShowAndTell #Funding#Healthcare#PatientCare#TrustBuilding#Education#Empathy#TreatmentCoordinator

Health & Safety TIPS

@PrimalTips · Post #1726 · 04.09.2020 г., 18:26

🤔FOOD FOR THOUGHT💭 📌 I would like to expose a situation. If your children don't learn with children with special needs at school and have never been taught that not everyone is equal, maybe you should spend 10 minutes today to explain it to them, 📌Because although they don't currently live with these children at school, they will find them in their lives for sure. 📌In light of recent events regarding the exclusion of a child with autism from attending a school trip and a child with Down Syndrome being expelled from dance class because she couldn't keep up with it, I feel the need to share this. 📌There are boys and girls that no one invites to birthday parties. There are special children who want to be part of a team but are not selected because it's more important to win than to include these children. 📌 Kids with special needs aren't weird , they just want what everyone wants: to be accepted! 📌Can I ask a question? Is there anyone willing share this article like I did, for all the special children out there? 📌Please teach your children to be kind to these beautiful children! 📌Everyone needs love and kindness #inclusion#syndromedown#autism#beingdifferentlynormal#respect#love#empathy@HeathSafetyTps