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

Пребарај: #aiunlockingsecrets

当前筛选 #aiunlockingsecrets清除筛选
AI & Law

@ai_and_law · Post #144 · 22.10.2023 г., 08:04

🌟 AI Sunday Wonders: Decoding Unreadable Ancient Scrolls with AI Hello, everybody! This Sunday we invite you to discover an incredible breakthrough! Computer science student Luke Farritor, a mere 21 years old, used machine learning to decipher the text of "unreadable" ancient Roman scrolls found in Herculaneum. This feat earned him a $40,000 prize from the Vesuvius Challenge, an initiative that encourages the decryption of these enigmatic scrolls. These scrolls, charred by volcanic eruptions, had remained indecipherable for centuries. Luke Farritor's success opens the door to unlocking the wisdom within these ancient texts. They were buried alongside Pompeii in the eruption of Mount Vesuvius in 79 AD. They are an invaluable piece of Roman history. The findings could revolutionize our understanding of the ancient world, akin to the Renaissance's rediscovery of lost manuscripts. Luke Farritor, along with his peers in this challenge, exemplifies how AI and dedication can bridge centuries to reveal history's untold stories. The past's secrets are no longer beyond our grasp. #AISundayWonders#DecipheringHistory#AIUnlockingSecrets