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

Резултати

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

Пребарај: #sctp

当前筛选 #sctp清除筛选
IRAS

@irassg · Post #2142 · 14.05.2026 г., 02:06

💡Did you know?Not everyone pays personal income tax – it depends on how much you earn. Singapore uses a progressive tax system: tax rates start at 0% for chargeable income below $20,000 and increase as income rises. Those who earn more contribute more, making the system fairer for everyone. That spirit of fairness was at the heart of our conversations with close to 30 youths this week. The Tax Youth Network (TYN) held its second kick‑off session at the refreshed Taxpayer and Business Service Centre (TBSC), bringing together students, young professionals and aspiring tax leaders for candid conversations on Singapore’s tax system. The room buzzed with thoughtful questions, diverse perspectives and discussions on trust, fairness and the role taxes play in nation-building. The new Discovery Hub at TBSC also made its debut, creating a more open and engaging space for these conversations. We were also privileged to have our partners, Singapore Chartered Tax Professionals and the Tax Academy of Singapore, share insights on career pathways and learning opportunities in the tax ecosystem. 👉🏻 TYN is more than a network, it is a community of youth advocates shaping perspectives and driving conversations on Singapore’s tax future. Keen to join this growing community? Join us at go.gov.sg/tyn26 #TaxYouthNetwork#YouthEngagement#SCTP#TaxAcademyofSingapore

GitHub Trends

@githubtrending · Post #15173 · 27.09.2025 г., 12:30

#cplusplus#c_plus_plus#cpp#datachannel#libdatachannel#libnice#p2p#peer_to_peer#peerconnection#rfc_8831#rfc_8834#rtcdatachannel#rtcpeerconnection#sctp#webrtc#webrtc_datachannel#webrtc_video#websocket libdatachannel is a lightweight, easy-to-use C/C++ library that lets you add real-time peer-to-peer data, media, and WebSocket communication to your apps across many platforms like Linux, Windows, macOS, Android, and iOS. It simplifies WebRTC by providing a smaller, simpler alternative to Google's library, with compatibility for browsers like Firefox and Chrome. You can use it to connect native apps directly to web browsers with minimal dependencies, supporting secure connections via GnuTLS, Mbed TLS, or OpenSSL. It also supports compiling to WebAssembly for browser use, making it flexible for cross-platform real-time communication development[1][4]. This helps you build fast, efficient apps for video, audio, or data sharing without heavy libraries. https://github.com/paullouisageneau/libdatachannel