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

Резултати

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

Пребарај: #chinaai

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

@ai_and_law · Post #59 · 18.07.2023 г., 07:04

China's new AI measures: boosting generative AI services Hello, everyone! Today we have exciting news from China. On July 13th China released the final version of the Interim Measures for Administration of Generative AI Services. Compared to the previous draft, which was open for public comments in April, the final version showcases a more business-friendly and supportive approach. These AI Measures specifically apply to services that generate text, image, video, and audio content using generative AI technology and are made available to the public in China. With a focus on both development and security, China adopts an "inclusive and prudent" stance. Notably, the final version includes more comprehensive provisions to foster international collaborations on generative AI technology and services, surpassing the scope of the earlier draft. The AI Measures outline a range of legal requirements for performing and utilizing generative AI services. These include adhering to core social values, protecting intellectual property rights and trade secrets, as well as taking effective measures to prevent discrimination, monopoly, and anticompetitive practices when designing algorithms, selecting training data, and creating computing models. While the whistle-blowing mechanism remains intact from the consultation draft, the punitive terms that could result in administrative fines of RMB10,000-100,000 for violations have been removed in the final AI Measures. The AI Measures are set to take effect on August 15th, sending a positive signal to businesses interested in investing, developing, and engaging in generative AI services in China. This move is expected to attract significant investments into China's thriving AI landscape in the coming months and years. #AIRegulations#GenerativeAI#ChinaAI#BusinessInvestments

Crypto M - Crypto News

@CryptoM · Post #64898 · 10.04.2026 г., 07:57

🚀 AI TRENDS | China's AI Industry Alliance Issues Risk Management Guide for Enterprise Security China's AI industry alliance has introduced a risk management guide aimed at enhancing enterprise security governance, similar to OpenClaw. According to NS3.AI, the guide establishes a security framework and self-inspection standards for the deployment, usage, and decommissioning of AI agents. #AI#ChinaAI#EnterpriseSecurity#RiskManagement#SecurityGovernance#AIIndustry#AIagents#NS3AI