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

Резултати

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

Пребарај: #сb

当前筛选 #сb清除筛选
NIDO Russia (НИДО)

@nido_russia · Post #1715 · 18.07.2024 г., 04:50

⚠🇷🇺🏦 From July 25, your financial transaction in Russia may be blocked and refunds may be issued without your consent if it falls under the following categories: 📌 If It is made to an account in the bank's database for fraudulent transactions. It may be the sending or receiving bank's database. 📌 If there is information about the initiation of a criminal case from a client or other interested party 📌 If data is received from third-party organizations indicating a fraudulent transaction (for example, information from a telecom operator about unusual telephone activity for the client before the transfer of funds or an increase in the number of incoming messages from new numbers, including in instant messengers). Please note "including instant messengers") On the same day, an order will also come into effect, according to which banks will have to return money, including those voluntarily transferred to fraudsters, to clients within 30 days of their request. There are three grounds for this refund: 1. If the account to which the funds were transferred is in the fraudulent database; 2. If the bank did not notify the client about the transfer without his consent; 3. If the card was lost or used without the client's consent. In the latter case, the client must notify the bank about the loss, otherwise the bank has the right not to return the funds. Subscribe:@nido_russia https://t.me/nido_russia/1715 #news#Russia#finance#fraud#crime#centralbank#цб#сb