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

Пребарај: #sfwa

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

@ai_and_law · Post #201 · 27.12.2023 г., 08:04

SFWA Advocates for Author Rights Amidst Copyright Challenges in AI Era The Science Fiction Writers Association (SFWA) is taking a stand for authors' rights in the digital age. In a recent submission to the US Copyright Office on December 7, the SFWA emphasized its role in representing authors who have generously shared their work on the open internet. This move comes as technology, particularly AI, exploits content in ways that challenge the rights and compensation of creators. Over the past two decades, many science fiction and fantasy authors have embraced the open internet to share their work freely, believing in the societal and cultural benefits of accessible art. However, the SFWA argues that making a work freely available doesn't imply abandoning authors' moral and legal rights. It stresses the importance of authors' rights, including the obligation to enter into legal contracts that ensure fair compensation and define how their work should be used. The SFWA's submission coincides with the US Copyright Office's inquiry into copyright and artificial intelligence launched in August 2023. This inquiry, designed to gather public comments, has seen a significant response, with over 10,000 comments received. #SFWA#AIChallenges#DigitalCulture#IntellectualProperty#AIandCopyright