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

Резултати

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

Пребарај: #cholera

当前筛选 #cholera清除筛选

As of 29th September, over 10,000 suspected cases of #cholera have been recorded from the 36 States + FCT. The ongoing cholera outbreak has been worsened by limited access to clean water, open defecation, & poor hygiene practices in affected communities. 🔗Download the situation report https://ncdc.gov.ng/diseases/sitreps/?cat=7&name=An%20update%20of%20Cholera%20outbreak%20in%20Nigeria

Hashtags

In reporting week 32, the number of suspected cases of #cholera increased to 121 cases. Our weekly situation report provides an update on the current #cholera epidemiological situation in Nigeria and our response activities. 🔗 Download via: https://ncdc.gov.ng/diseases/sitreps/?cat=7&name=An%20update%20of%20Cholera%20outbreak%20in%20Nigeria

Hashtags

Our weekly #cholera situation report for weeks 28 and 29 has been uploaded. The reports provide an update on the current #cholera epidemiological situation in Nigeria and our response activities. 🔗 Download via: https://ncdc.gov.ng/diseases/sitreps/?cat=7&name=An%20update%20of%20Cholera%20outbreak%20in%20Nigeria

Hashtags

Your actions, no matter how small can limit the risk of #cholera infection. 🚫Do not defecate in open areas 🧤Clear your drainages ✅Only drink water from safe sources ✅Dispose of refuse properly in waste disposal sites Public health advisory⬇️ 🔗https://ncdc.gov.ng/news/513/stop-cholera%3A-public-health-advisory

Hashtags

Our weekly #cholera situation report for week 27 has been uploaded. The report provides an update on the current #cholera epidemiological situation in Nigeria and our response activities. 🔗 Download via: https://ncdc.gov.ng/diseases/sitreps/?cat=7&name=An%20update%20of%20Cholera%20outbreak%20in%20Nigeria

Hashtags

Our #cholera situation reports are now weekly. The reports provide an update on the #cholera epidemiological situation in Nigeria and our response activities. 🔗 Download via: https://ncdc.gov.ng/diseases/sitreps/?cat=7&name=An%20update%20of%20Cholera%20outbreak%20in%20Nigeria

Hashtags

The bacteria, Vibrio cholerae, that causes #cholera is commonly found in contaminated water and food. Protect yourself. Read our public health advisory on measures to take to prevent yourself from getting infected. ⬇️ 🔗 https://ncdc.gov.ng/news/513/stop-cholera%3A-public-health-advisory

Hashtags

#Cholera Situation Report Our monthly Cholera Situation Report for May 2024 has been published on our website. 🔗You can download, read and share via https://ncdc.gov.ng/diseases/sitreps/?cat=7&name=An%20update%20of%20Cholera%20outbreak%20in%20Nigeria

Hashtags

Unwashed hands, untreated water, and uncovered food are some of the ways #Cholera germs are spread. Personal and environmental hygiene remains one of the best ways to STOP #Cholera. Watch this little boy's story on cholera: https://www.youtube.com/watch?v=jG1VNSCsP5Q

Hashtags

123•••78
ПретходнаСтраница 1 од 8Следна