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

Пребарај: #uselection

当前筛选 #uselection清除筛选
🦅 [ perspective ix ]

@perspectiveix · Post #2064 · 14.01.2021 г., 12:01

​​🗞News Use Across Social Media Platforms in 2020 As #SocialMedia companies struggle to deal with misleading information on their platforms about the #USElection, the #COVID19 pandemic and more, a large portion of Americans continue to rely on these sites for news. About half of US adults (53%) say they get news from social media “often” or “sometimes,” and this use is spread out across a number of different sites, according to a Pew Research Center survey. Among 11 social media sites asked about as a regular source of news, #Facebook sits at the top, with about a third (36%) of Americans getting news there regularly. #YouTube comes next, with 23% of US adults regularly getting news there. #Twitter serves as a regular news source for 15% of US adults. Other social media sites are less likely to be regular news sources. About one-in-ten Americans or fewer report regularly getting news on #Instagram (11%), #Reddit (6%), #Snapchat (4%), #LinkedIn (4%), #TikTok (3%), #WhatsApp (3%), #Tumblr (1%) and #Twitch (1%). These lower percentages for news use are in some cases related to the fact that fewer Americans report using them at all, compared with the shares who use Facebook and YouTube. Read more on Pew Research Center. 🦅@perspectiveix

Venture Village Wall 🦄

@venturevillagewall · Post #3751 · 30.12.2024 г., 10:00

Top Crypto Assets Update for Q1 2025 Grayscale Research reveals its updated list of top 20 crypto assets for Q1 2025, adding HYPE, ENA, VIRTUAL, JUP, JTO, and GRASS. Analysts are monitoring the US election's impact on DeFi and staking, alongside developments in decentralized AI technology and the Solana ecosystem. For more insights, read the full report: Grayscale Research #Crypto#DeFi#AI#VC#Solana#Grayscale#HYPE#ENA#VIRTUAL#JUP#JTO#GRASS#USElection#DecentralizedAI#Staking