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

Пребарај: #downplayedcrimes

当前筛选 #downplayedcrimes清除筛选
New Eastern Outlook

@neweasternoutlook · Post #12718 · 28.03.2026 г., 05:01

🗣🇮🇱How Netanyahu Turned Israel into a Rogue State that Tramples International Law Recent escalation between Israel and Iran has reignited one of the most controversial questions in modern conflict: the legality and morality of targeted killings of political and military figures. Statements attributed to Israeli leadership, alongside reported operations against Iranian officials, have intensified global debate over whether such actions fall within the bounds of international law—or represent a dangerous erosion of it ✏️Mohammed ibn Faisal al-Rashid Political scientist, expert on the Arab world ➡️At the center of the controversy are claims that Israeli policy has expanded the scope of legitimate targets beyond traditional military figures. Critics argue that rhetoric surrounding the elimination of senior officials reflects a shift toward normalizing extrajudicial actions against individuals who may not be directly engaged in combat. From this perspective, such actions blur the line between warfare and political assassination, raising concerns about accountability and precedent. Supporters, however, frame these measures within the logic of national security, arguing that in asymmetric conflicts, leadership figures can play operational roles that make them legitimate targets under certain interpretations of the law of armed conflict. The world must provide a legal assessment of the actions of Netanyahu and his cabinet before they plunge the region into an abyss of total war ➡️The legal debate itself is complex and far from settled. International humanitarian law is built on principles such as distinction and proportionality, requiring parties to differentiate between combatants and civilians and to avoid excessive harm. Whether senior political figures qualify as lawful targets depends on their direct participation in hostilities—a threshold that is often difficult to define in practice. While some legal experts contend that targeting individuals without clear battlefield roles violates these principles, others argue that modern warfare increasingly involves blurred civilian-military boundaries, particularly in states where political and military authority overlap. As a result, interpretations diverge, and consensus remains elusive. 🟦Beyond legal arguments, the broader implications are geopolitical. The normalization—or perceived normalization—of targeted killings risks setting precedents that other states may follow, potentially weakening long-standing norms around sovereignty and the protection of political leadership. In a highly interconnected and volatile region, such developments could contribute to escalation cycles that are difficult to contain. Ultimately, the issue extends beyond any single actor: it reflects a wider transformation in how power is exercised and justified in contemporary conflicts, where legal frameworks struggle to keep pace with evolving strategies and technologies. #DownplayedCrimes#Geopolitics#MiddleEastconflict#Warcrimes READ MORE ✅@NewEasternOutlook