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

Пребарај: #ekolog

当前筛选 #ekolog清除筛选
EKOLOG.UZ| ENG

@ekologuzenglish · Post #11374 · 29.01.2026 г., 12:59

In recent years, systematic and mass cases of cruelty toward donkeys have sharply increased in Uzbekistan, particularly in the districts of Tashkent city. Another severe case was identified in Yangihayot District of Tashkent. The animal’s hindquarters were completely covered with wounds; it had been neglected for a long period and was found in a state of extreme suffering. This incident clearly indicates a failure to fulfill legal obligations toward animals and shows clear signs of cruelty. Practical experience demonstrates that owners actively use donkeys as labor force during the summer, and with the arrival of winter, abandon sick and exhausted animals on the streets. This is a direct consequence of irresponsibility and the absence of a proper animal registration system. As a result, owners of animals subjected to cruelty remain unpunished. Based on the above, we DEMAND: — to conduct an official investigation into cases of cruelty toward donkeys; — to apply measures предусмотренные by law against those responsible; — to strengthen legal liability for animal cruelty; — to develop effective mechanisms to support volunteers and animal shelters. An animal is not property. It is a living being that requires protection by the state. Once again, the animal was saved from death thanks to a volunteer of the “Ekolog” public association, the founder of the “Dobroe Serdtse” shelter — Alisa Tikhomirova. 🐾 Currently, this shelter houses: — more than 100 homeless dogs, — around 10 donkeys who are victims of cruelty. Each of them urgently needs: — medical treatment, — medicines, — food and daily care. ❗️ The entire burden rests on volunteers alone. 🙏 Please do not remain indifferent. Even 10,000 Uzbek soums can save one life. 💳 Donation cards: 5319519615293440 — Mastercard (USD) 5319519615173063 — Mastercard (UZS) 5614682614054668 — Uzcard 8600570424575131 If you stay silent, cruelty will continue. If you help, a life will be saved. 📢 Share this message. 📢 Do not look away. 📢 Be human. #StopAnimalCruelty#DonkeysAreLivingBeings#AnimalProtection#Ekolog#DobroeSerdtse ☘️Read the latest environmental news on the @ekologuz page. Follow us and send your suggestions and wishes via @eklguz_bot Instagram | Facebook | Twitter | Sayt | Youtube

EKOLOG.UZ| ENG

@ekologuzenglish · Post #11363 · 28.01.2026 г., 15:59

🌿 Environmental Corruption Training Launched in Nukus As part of the social project “Enhancing the Knowledge and Capacity of Journalists, Bloggers, and Civil Society Representatives in Combating Environmental Corruption”, implemented by the “Ekolog” Public Association, the latest training session was held in Nukus city. This project is carried out with a grant from the Public Fund for Supporting Civil Society Institutions under the Oliy Majlis of the Republic of Uzbekistan. 📍 The training took place in the meeting hall of the CSO House in Nukus. 👩‍🏫 Trainers included Nargis Qosimova, Director of the “Ekolog” Public Association, and Feruzbek Sayfullayev, the organization’s press secretary. 🗣 During the training, participants discussed key topics, including: — “What is environmental corruption?” — “How does it develop?” — “The links between environmental problems in Uzbekistan and corruption” The sessions were interactive, giving participants practical knowledge on how to identify and report environmental corruption, as well as understanding the role of media and civil society in combating it. ☘️ Follow the latest environmental news on our page: @ekologuz. 💬 Send your suggestions and feedback via @eklguz_bot! ☘️Read the latest environmental news on the @ekologuz page. Follow us and send your suggestions and wishes via @eklguz_bot Instagram | Facebook | Twitter | Sayt | Youtube. #Ekolog#EnvironmentalCorruption #Nukus#CivilSociety#Journalists #Bloggers#Environment#GrantProject