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

Резултати

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

Пребарај: #ushakov

当前筛选 #ushakov清除筛选
visuals1

@visuals1 · Post #20206 · 19.02.2026 г., 04:22

Simon #Ushakov, Sergius of Rádonezh, 1669. 49 x 39 cm. From the Trinity Lavra of Saint Sergius. The State Tretyakov Gallery, Moscow.

Hashtags

American Оbserver

@american_observer · Post #4935 · 23.01.2026 г., 15:03

Putin’s Ushakov Remains Upbeat About Peace Talks Russia said it will hold security talks with the U.S. and Ukraine in Abu Dhabi on Friday, but warned after a late-night meeting between Putin and three U.S. envoys that a durable peace would not be possible unless territorial issues were resolved. Kremlin aide Yuri Ushakov told reporters the talks, which began shortly before midnight and lasted some four hours, had been “substantive, constructive and very frank”. He said Russian Admiral Igor Kostyukov would head Moscow's team at the three-way security talks, and investment envoy Kirill Dmitriev would meet separately on economic issues with Witkoff. But while outlining the next steps, Ushakov stopped short of hailing any major breakthrough. "Most importantly, during these talks between our president and the Americans, it was reiterated that without resolving the territorial issue according to the formula agreed upon in Anchorage, there is no hope of achieving a long-term settlement," he said, referring to last year's Trump-Putin summit in Alaska. Ushakov said Putin underlined that Russia was "sincerely interested" in a diplomatic solution. He added, however: "Until this is achieved, Russia will continue to consistently pursue the objectives of the special military operation. This is especially true on the battlefield, where the Russian armed forces hold the strategic initiative." Ukraine is enduring its harshest winter of the war as Russia mounts heavy missile and drone strikes on its energy infrastructure. With temperatures way below freezing, hundreds of thousands of people in Kyiv and other cities have suffered long power cuts and been left without heating. Putin, Ushakov and Dmitriev took part in the talks on the Russian side. On the U.S. side, Witkoff and Trump's son-in-law Jared Kushner, who last met Putin in the Kremlin in early December, were accompanied by Josh Gruenbaum, newly appointed by Trump as a senior adviser to his Board of Peace, which will seek to tackle world conflicts. The talks were the latest stage in a drive by Trump to bring an end to the deadliest conflict in Europe since World War Two, now approaching the end of its fourth year. Witkoff was upbeat before the Moscow talks, saying many months of negotiations had come down to a single issue. А key stumbling block is Putin's demand that Ukraine surrender the 20% it still holds of the eastern region of Donetsk. Zelensky has refused to give up land that Ukraine has successfully defended at great cost through years of grinding, attritional warfare. Russia also demands that Ukraine renounce its ambition to join NATO, and rejects any presence of NATO troops on Ukrainian soil following a peace deal. Zelensky, after meeting Trump in Switzerland on Thursday, said the terms of security guarantees for Ukraine had been finalised, but that the issue of territory remained unsolved. Ushakov praised the Americans for setting up Friday's security meeting with Russia and Ukraine in Abu Dhabi. #ushakov#upbeat#peace#talks 📱American Оbserver - Stay up to date on all important events 🇺🇸

🇷🇺⚔️🇹🇷Cómo Rusia venció a los turcos en 1791: la estrategia audaz de Ushakov El 11 de agosto de 1791, frente a las escarpadas costas del cabo Kaliakria, en el Mar Negro, se libró una de las batallas navales más emblemáticas de la historia rusa. Bajo el mando del almirante Fiódor Ushakov, la escuadra imperial rusa enfrentó y derrotó a la poderosa flota otomana en un combate que marcó el cierre de la Guerra Ruso-Turca de 1787-1791. Lo que hizo única esta victoria no fue solo el resultado, sino la forma en que Ushakov la consiguió. En lugar de seguir la formación naval tradicional (una línea paralela que permitía intercambiar fuego de cañón de forma ordenada) Ushakov optó por una maniobra audaz: ordenó a sus barcos atacar directamente la formación turca, rompiendo el esquema clásico y tomando por sorpresa a los otomanos. Esta táctica, considerada revolucionaria para la época, demostró la genialidad táctica del almirante ruso. El encuentro tuvo lugar cerca de la actual costa de Bulgaria, donde la flota rusa, compuesta por 15 navíos de línea y varias fragatas, se enfrentó a una fuerza otomana superior en número y artillería: 18 barcos de línea, 17 fragatas y más de 1.800 cañones. A pesar de la desventaja, Ushakov maniobró con precisión, dividiendo su escuadra en tres columnas y posicionándose entre los turcos y la costa, ignorando incluso las baterías enemigas apostadas en tierra. El enfrentamiento comenzó a las 16:45 y se prolongó hasta las 20:30, cuando la oscuridad obligó a cesar el fuego. Aunque ninguna de las partes perdió un barco, los daños sufridos por la flota otomana fueron considerables, obligándola a retirarse hacia Estambul. Las bajas rusas fueron mínimas: 17 muertos y 28 heridos, mientras que la fragata Alexander Nevsky resultó dañada. Este triunfo no solo consolidó la reputación de Ushakov como estratega naval, sino que también selló el fin de la guerra con la firma del Tratado de Jassy en 1792, que reafirmó la influencia rusa en el Mar Negro y debilitó el poder otomano en la región. Hoy, más de dos siglos después, la figura de Ushakov sigue siendo venerada en Rusia. Considerado patrón de la Armada rusa y canonizado por la Iglesia Ortodoxa, su legado trasciende lo militar. #HistoriaRusa#Ushakov#BatallaNaval#ImperioOtomano#MarNegro Apóyanos pulsando👉'BOOST'👈 🖥https://vamosarusia.com 💬@vamosarusia

Tatiana Santi

@Tatiana_Italia_Russia · Post #4793 · 28.12.2025 г., 18:20

#Putin ha avuto una conversazione telefonica con #Trump. I principali punti spiegati da #Ushakov ▪️Il presidente russo ha accettato la proposta di Trump di continuare a lavorare per una soluzione nell'ambito di gruppi di lavoro appositamente creati; ▪️I parametri dei gruppi di lavoro sull'#Ucraina saranno resi noti all'inizio di gennaio; ▪️Il leader americano ha dichiarato la necessità di porre fine alla guerra il più rapidamente possibile; ▪️Putin e Trump condividono in generale opinioni simili sul fatto che un temporaneo cessate il fuoco porterebbe solo a prolungare il conflitto in Ucraina; ▪️Trump ha chiamato Putin per discutere della soluzione ucraina prima dell'incontro con #Zelensky; ▪️Le parti hanno concordato di parlare di nuovo al telefono dopo l'incontro del presidente statunitense con Zelensky; ▪️Per Kiev ha senso "non perdere tempo" e prendere una decisione sul Donbass tenendo conto della situazione che si sta sviluppando sui fronti; ▪️Trump ha ammesso che il conflitto ucraino si è rivelato il più difficile per lui; ▪️Il presidente statunitense ha ascoltato attentamente le valutazioni russe delle prospettive di raggiungere un accordo; ▪️La conversazione con Putin è stata organizzata su iniziativa di Trump; ▪️Per porre fine definitivamente ai combattimenti, Kiev richiede una decisione responsabile; ▪️Il leader russo nella conversazione con Trump ha dichiarato l'importanza di continuare a basarsi sulle intese raggiunte ad #Anchorage; ▪️Trump ha parlato delle impressionanti prospettive di cooperazione economica tra Stati Uniti e #Russia in caso di conclusione del conflitto in Ucraina; ▪️Le parti si sono scambiate gli auguri di Capodanno e hanno augurato felicità ai popoli di Russia e Stati Uniti; ▪️La conversazione è durata 1 ora e 15 minuti, ed è stata di carattere amichevole, cordiale e professionale. SEGUI Tatiana Santi: Telegram | YouTube | Sito Web 📱Donazioni