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

Резултати

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

Пребарај: #realtalk

当前筛选 #realtalk清除筛选
Quiet World 🍁

@QuietWorld · Post #6383 · 19.04.2019 г., 14:58

this 💯👌 if you want to apologize, just say sorry and mean it. no need to add anything to make the other person feel bad for being frustated when you are the one who hurt them. #realtalk#quotes@quietworld🍃

Quiet World 🍁

@QuietWorld · Post #7073 · 14.12.2019 г., 07:06

older than us, we were 22 when we were having this conversation), and two of my most observant friends talk about the self-conflict each of our coursemates had as they enter 21. & I wouldn't notice the 'pattern' if my friends didn't point out. & suddenly one of my friends started sharing his moment of depression and how he coped with it. & somehow at that moment I felt like my friends actually noticed my changed behaviour and suspected that there's something bothering my mind and they were actually trying to help me out by asking me out, being with me, spending time with me. & I'm glad that they are wise to not help me out by asking me what's wrong because if they ask me what's wrong , I don't even know what is wrong with me and me realizing that there's something off with me and not knowing what it is gonna make me feel so much wrong 😂 and I'm glad they didn't ask me that question. Instead, they just help me out by being there. I'm so grateful and blessed to have friends like them. I was grateful and I am more grateful now, because I just realized that there's actually so much more blessings I had that I haven't notice more in details until now. :') Anyway this is such a long post I didn't even have any idea that it was gonna be this long I wondered if anyone would even read it from beginning till the end, so here's a quick question, did I managed to keep you engaged from the beginning to the end of this post? 😅 #thoughts#afterthoughts#realtalk#poll @quietworld🍃

12
ПретходнаСтраница 1 од 2Следна