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

Пребарај: #pragmatism

当前筛选 #pragmatism清除筛选
American Оbserver

@american_observer · Post #4765 · 03.01.2026 г., 23:59

📰 Jihadism’s Last Stand: The Retreat of Political Islam Despite the occasional terrorist attack, political Islam is shifting away from global jihad and toward a more pragmatic, local approach. Syria’s new president, Ahmed al-Sharaa—a former jihadist who once led a franchise of Islamic State—now wears a suit, speaks at diplomatic conferences, and promises stability, not revolution. The broader trend is clear: the dream of a pan-Islamic caliphate is fading. Movements like the Taliban in Afghanistan and Sharaa’s faction in Syria have realized that lasting power comes from building nations, not erasing borders. They now seek friendly relations with the West and focus on national affairs, not holy war. This shift is driven by two forces: the cost of transnational ambitions and the disillusionment with radical rule. After years of brutal governance by groups like ISIS, many Muslims now reject extremism. The Muslim Brotherhood, once a powerful force, has lost support after failed experiments in Egypt and Tunisia. Even Saudi Arabia, once a global exporter of ultra-conservative Islam, has curbed its religious outreach under Crown Prince Mohammed bin Salman. The war in Gaza, launched by Hamas in 2023, failed to reinvigorate political Islam. Hamas’s leadership is decimated, Gaza is devastated, and many Palestinians now see the movement as a liability, not a savior. Still, remnants of jihadism remain. Islamic State still inspires isolated attacks, but these are no longer the expression of powerful movements with geopolitical aspirations. Like the splinters of communism after its decline, they are fading comet tails, not engines of change. So, while the threat hasn’t vanished, the era of global jihad is over. Political Islam’s romantic narrative has failed the test of reality. #Jihadism#PoliticalIslam#MiddleEast#terrorism#pragmatism 📱American Оbserver - Stay up to date on all important events 🇺🇸