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 слични објави

Пребарај: #everydaypsychology

当前筛选 #everydaypsychology清除筛选
Ai Arts Gallery

@AIArtsGallery · Post #8235 · 26.01.2026 г., 11:33

Step into my cozy world 🌙 Hey! I'm Luna Everly, a girl running my personal ai channel. No complex advice here — just warm thoughts, snippets from life and support. I believe you can find beauty and meaning even in everyday routines. Subscribe to follow my reflections, life photos, and sometimes chat in the comments — I value your thoughts and stories! 💫 Follow the link and subscribe to the channel — let's connect! #LunaEverly#PersonalDiary#CozyWorld#Support#EverydayPsychology

Ai Arts Gallery — Anime

@AiArtsGalleryAnime · Post #5840 · 26.01.2026 г., 11:30

Step into my cozy world 🌙 Hey! I'm Luna Everly, a girl running my personal ai channel. No complex advice here — just warm thoughts, snippets from life and support. I believe you can find beauty and meaning even in everyday routines. Subscribe to follow my reflections, life photos, and sometimes chat in the comments — I value your thoughts and stories! 💫 Follow the link and subscribe to the channel — let's connect! #LunaEverly#PersonalDiary#CozyWorld#Support#EverydayPsychology

Luna Everly

@lunaeverly · Post #47 · 26.01.2026 г., 08:15

Step into my cozy world 🌙 Hey! I'm Luna Everly, a girl running my personal ai channel. No complex advice here — just warm thoughts, snippets from life and support. I believe you can find beauty and meaning even in everyday routines. Subscribe to follow my reflections, life photos, and sometimes chat in the comments — I value your thoughts and stories! 💫 Follow the link and subscribe to the channel — let's connect! #LunaEverly#PersonalDiary#CozyWorld#Support#EverydayPsychology

Luna Everly

@lunaeverly · Post #38 · 23.01.2026 г., 08:27

A little ritual before hearing my breath on the mat🧘‍♀️💧 Ran to the kitchen for water — and got stuck for a minute by the window. The neighbor's cat is strolling importantly along the ledge... A quiet moment between "have to" and "done." The body asks for movement, the soul — for this silence. Now I'll give it both. Маленький ритуал перед тем, как услышать своё дыхание на коврике. 🧘‍♀️💧 Забежала на кухню за водой — и застряла на минуту у окна. Соседский кот важно прогуливается по карнизу… Тихий миг между «надо» и «сделала». Тело просит движения, а душа — этой тишины. Сейчас дам и то, и другое. #LunaEverly#BeforeWorkout#Mindfulness#SmallJoys#MyDay#EverydayPsychology

Luna Everly

@lunaeverly · Post #29 · 21.01.2026 г., 08:35

Sometimes the best therapy isn't a session, but a friend's sofa, laughing till you cry, and conversations about nothing serious. ☕️✨ Иногда лучшая терапия — это не сессия, а диван подруги, смех до слёз и разговоры ни о чём серьёзном. ☕️✨ #LunaEverly#SimpleJoys#GirlsNightIn#EverydayPsychology#SoulCare#WarmAndCozy

Luna Everly

@lunaeverly · Post #24 · 20.01.2026 г., 08:51

My morning starts with this mat. 🧘‍♀️ Not for perfect poses, but for silence. Just 20 minutes to talk to my body. Do you have your own way to slow down and listen to yourself? Моё утро начинается с этого коврика. 🧘‍♀️ Не для идеальных поз, а для тишины. Всего 20 минут, чтобы поговорить с телом. А у вас есть свой способ замедлиться и услышать себя? #lunaeverly#yogaforbeginners#morningritual#mindfulness#bodyawareness#quietmoments#everydaypsychology#selfcare

Luna Everly

@lunaeverly · Post #23 · 19.01.2026 г., 14:07

Hey, I'm Luna. 🌙✨ A psychology student who believes the most important conversations sometimes happen not in an office, but over a cup of tea, in a cozy sweater, with the sound of rain against the window. Here I'll share my thoughts, snippets of my life, and a quiet belief that understanding can be found in this world. And photos — I love capturing things that are beautiful, simple, and genuine. Glad you're here. #lunaeverly#thinkingoutloud#support#everydaypsychology#cozy#personaldiary Привет, я Луна. 🌙✨ Студентка-психолог, которая верит, что самые важные разговоры иногда случаются не в кабинете, а за чашкой чая, в уютном свитере и под звук дождя за окном. Здесь я буду делиться своими мыслями, моментами из жизни и тихой уверенностью, что в этом мире можно найти понимание. А ещё фотографиями — мне нравится ловить красивое, простое и настоящее. #лунаэверли#мысливслух#поддержка#психологияповседневности#уют#личныйдневник