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

Пребарај: #tyler

当前筛选 #tyler清除筛选
Pensive|

@PensivePost · Post #5426 · 25.09.2021 г., 20:27

The sunrays taking; All the darkness away, Love taking all hatred away, Miniature hopes in shapes of stars, Now subsiding in beautiful destiny, Happiness taking all the pain away. In midst the beautiful world, I laid here, Breathless, My sould taken away by you, My heart given to beat in someones Else's cage, My body drifted with fire, My voice taken away by deafening silence, My memories now, washed away, Fading away with new ones. This is how, A beautiful day began, Changing my life, To be dreadful forever, In midst the beautiful world, I laid here as a dead lover. #tyler#review

Pensive|

@PensivePost · Post #5419 · 24.09.2021 г., 06:30

She's like a poem, Waiting to be read. She's like a song, Waiting to be sung. She's like a melody, Waiting to be heard. She's like a book, Waiting to be understood. She's like a dance, Waiting to be performed. She's like a beauty, Waiting to be cherished. She's like art, Waiting to be crafted. She's you, Waiting to be found. She's you, Waiting to be loved. She's not just a girl, She's within all of you, She resides somewhere inside, Somewhere the golden rays don't reach, Somewhere the silver shine doesn't work, Somewhere in you, She stays, Waiting to be acknowledged. #tyler#review

Pensive|

@PensivePost · Post #5418 · 24.09.2021 г., 06:29

She's like a poem, Waiting to be read. She's like a song, Waiting to be sung. She's like a melody, Waiting to be heard. She's like a book, Waiting to be understood. She's like a dance, Waiting to be performed. She's like a beauty, Waiting to be cherished. She's like art, Waiting to be crafted. She's you, Waiting to be found. She's you, Waiting to be loved. She's not just a girl, She's within all of you, She resides somewhere inside, Somewhere the golden rays don't reach, Somewhere the silver shine doesn't work, Somewhere in you, She stays, Waiting to be acknowledged. #tyler#review

Pensive|

@PensivePost · Post #5410 · 22.09.2021 г., 10:32

During a dreadful night, I managed to put up a fight. Maybe the strong me died, And weak me survived. The constant voices in my ears, Here I am living in my fears. Like a painful reminder of that night, Where I lost a outnumbered fight. Wondering if I am even right, While holding myself tight. The night is long dead, Here my tears still wetting my bed. That dreadful night, The cause of my fright. These thoughts make me shiver, The fear making me quiver. My painful screams, Still haunting my dreams. Maybe the strong in me died, And weak me survived. I haven't given up the fight, Because I know, I can still make it right. #tyler#review

Trump's Ear

@trumpsear_tg · Post #1527 · 18.09.2025 г., 14:35

The correspondence of Tyler Robinson, a suspect in the murder of Charlie Kirk, with his transgender lover, with whom he lived, has been published. The name of the roommate is not mentioned. #correspondence#tyler#robinson#suspect #Trump#Democrats 👂More on Trump's Ear ⚠️