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

Резултати

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

Пребарај: #lovelived2

当前筛选 #lovelived2清除筛选
Niva

@heyniva · Post #7547 · 31.01.2026 г., 08:09

Episode 16 The villa deck hums with sunlight, the ocean below impossibly clear — liquid turquoise stretching forever. He hits the water first, surfacing with a splash and boyish triumph, pushing wet hair from his eyes. “Come on!” he calls, treading water, arms open like the sea is his idea. She sits at the top of the slide, toes curled over the edge, laughter already bubbling in her chest. The world feels weightless up here — sky, water, horizon all blending into one endless promise. She looks at him, glowing down there, and shakes her head like she can’t believe this is real. He cheers louder. She leans back, breath caught between thrill and trust — and lets go. If you jump, I jump. Every lifetime. 📖 Read on Wattpad 🎧 Love, Lived I Album #lovelived#lovelived2#theeverydaymagic ❤️ YouTube | Instagram ❤️

Niva

@heyniva · Post #7532 · 24.01.2026 г., 09:46

Episode 15 Thursday afternoons belong to sugar and sunlight. They don’t debate flavors anymore—she reaches for hers, he for his, like muscle memory. The shop owner already knows their order. They walk slowly, cones melting faster than planned, shoulders brushing, trading bites without asking. Workdays soften. The week exhales. Love tastes like something cold and sweet, shared halfway down the block. Traditions are just love that learned the schedule. 🍦✨ 📖 Read on Wattpad 🎧 Love, Lived I Album #lovelived#lovelived2#theeverydaymagic ❤️ YouTube | Instagram ❤️

Niva

@heyniva · Post #7531 · 24.01.2026 г., 09:46

Episode 14 The kitchen smells like garlic and sun-warmed tomatoes. She stirs the pasta with one hand, dancing slightly to a morning playlist. He sits at the table, laptop open but eyes drifting. The new vase sits between them, holding sunflowers like a little sun of its own. He types. She tastes. The space hums—spoon clinks, keys click, love simmering in the background. A bouquet, a bowl of pasta, and you across the table. Perfect. 📖 Read on Wattpad 🎧 Love, Lived I Album #lovelived#lovelived2#theeverydaymagic ❤️ YouTube | Instagram ❤️

Niva

@heyniva · Post #7359 · 20.11.2025 г., 16:51

Episode 13 She wakes to the smell of something warm, sweet, familiar. The dining room glows—sunlight spilling in through the floor-to-ceiling glass wall, kissing every detail he carefully placed: fresh fruit gleaming in bowls, milk in a glass pitcher, her favorite breakfast dish plated like art, dessert waiting with a ribbon on the side, the sunflower-filled vase watching quietly. He stands there—apron still crooked, cheeks a little pink. “I want you to break your fast with your favorite dish made by me. I poured all my love into it. Happy birthday, my love.” She doesn’t sit right away. She hugs him first. Slow. Long. Like she tasted the love before the food. This morning, love tasted homemade. 📖 Read on Wattpad #lovelived#lovelived2#theeverydaymagic

Niva

@heyniva · Post #7358 · 20.11.2025 г., 16:51

Episode 12 The beach is empty—except for them. Lanterns flicker in glass jars, fairy lights drape over driftwood like fallen stars. A small table for two sits on a sand-carved rug, scattered with rose petals and sea breeze. She stops walking, hand over her mouth, dress brushing the shore. He watches her—not the waves, not the lights—her. She turns, eyes glossy, and breathes, “This feels unreal.” He smiles. “Then we’re right on time.” The world paused—so we could celebrate you. 📖 Read on Wattpad #lovelived#lovelived2#theeverydaymagic