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

Резултати

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

Пребарај: #militarycrimes

当前筛选 #militarycrimes清除筛选
Россия в ОБСЕ

@RusMissionOSCE · Post #7167 · 12.07.2025 г., 16:07

⚡️On the human rights situation in the UK — Joint Report of Russia's and Belarus' MFAs Key points of the country segment ❌ The British authorities, are trying to position the country as a benchmark in human rights protection all the while silencing serious, deep-rooted problems in their human rights record, both domestically and in the international arena. They use this self-appointed (and undeserved) mantle to are disseminate criticism of "undesirable" States regarding this issue. At the same time, the UK faces serious, often overlooked challenges, including: 🔻Systemic racism, notably against people of African descent within law enforcement, the justice system, and penal institutions; 🔻 Widespread violations of the rights of Roma and Travellers; 🔻 A surge in hate crimes based on religion and ethnicity — including antisemitism and Islamophobia; 🔻 Growing popularity of neo-Nazi groups; 🔻Russophobia as a form of xenophobia; 🔻Forced deportation of asylum seekers to third countries (the “Rwanda scheme”). The legacy of the Northern Ireland conflict also remains largely unaddressed by international human rights mechanisms. The efforts of some NGOs and the media, which often come under pressure from the British authorities and under other forms of oppression for their activities, make the existing violations public. The case of Julian Assange, founder of WikiLeaks, became resonant in the context of human rights violations. Obviously, the substantive side of the process had clear signs of violation of freedom of expression and information, as well as persecution on political grounds. #Colonialism#Neocolonialism Despite attempts to turn over the shameful pages of its colonial past, the consequences of it are increasingly affecting Britain's international image. Although British officials condemn their country's colonial past, they have traditionally rejected the idea of paying compensations to the victims of colonialism. In 2015, when he was Prime Minister of Britain, this was mentioned by David Cameron, Foreign Secretary from 2023 to 2024, whose ancestors included many slave owners. The ex-head of the Cabinet, Rishi Sunak, refused to apologise at all for London's role in the slave trade. Against this background, it is noteworthy that the initiator of the export of labour in the 19th century – J. Gladstone was the father of the future Prime Minister William Gladstone. #MilitaryCrimes ❗️The focus of attention remains on the media reports with evidence and testimonies to the numerous killings by British Special Air Service (SAS) troops of unarmed people in Afghanistan between 2010 and 2013. The revelations of witnesses who directly or indirectly pointed to the facts of the crimes committed by the British military have caused a resonance in the media. According to one of them, a Special Forces unit codenamed UKSF1 used tactics to indiscriminately kill male Afghan civilians, including teenagers under the age of 16, during raids. In parallel, media outlets have been circulating criticism of the British authorities for numerous offences in Kenya. In particular, representatives of the British training unit BATUK have been accused of violence, sexual harassment, negligent handling and loss of ammunition, and the use of chemicals during training exercises. Read in full