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

Пребарај: #solenoye

当前筛选 #solenoye清除筛选
DruschbaFM - English

@druschbaFm_en · Post #52752 · 01.04.2025 г., 07:57

⚡️ 🇷🇺 🇺🇦⚔️ Ukraine Fronts on the Morning of 1 April⚡️ 🔴 In #Chernigov Direction, the AFU has reportedly already crossed the Russian border of the #Bryansk region many times. Locals point to periodic incursions towards several villages. 🔴#Sumy Direction: 🔴In #Sudzha Sector, to the west on Ukrainian soil, the situation based on confirmed information and evidence is as follows: 🟡#Vladimirovka- AFU; {1st blue↗️}; 🟡#Vodolagi - AFU; 🟡#Uspenovka in Russia - contested {1st black↘️}; 🟡#Veselovka - contested {2nd black↖️}; 🟡#Belovody - AFU; 🟡 In #Zhuravka, fights in the central part; 🟡 In #Basovka, the RFAF assaults the eastern part. 🟡#Novenkoye - RFAF {1st red⬆️}. 🟡 In #Kursk region, reportedly, Russian troops have repelled an assault on the 'Border Checkpoint' {2nd red↙️}; the AFU have reinforced the battle area around #Oleshnya {4th blue⬅️}. 🟡 In #Guyevo, the RFAF have reportedly extended their control zone {5th black⬇️}. 🟡#Gornal remains AFU controlled. 🔴In #KrasnayaYaruga Sector, reportedly positional battles are taking place in #Popovka {6th black↙️}. 🟡 In #Demidovka, the AFU have advanced in the central part and in the area of ​​the farm in the village's eastern part. 🗺 Map 2 🟡 At #Grafovka and #Prilesye, lull. 🗺 All on Map 1 🔴#Kharkov Direction: 🔴In #Liptsy Section, positional battles. 🔴 In #Volchansk Section, as well in the city itself. 🔴#Svatovo Front: 🔴 In #Kupyansk and #Borovaya Sectors, reportedly slight tactical successes for the RFAF without major changes. 🔴In #Liman Sector, fighting south of #Katerinovka and east of #Novoye in the north. 🔴In #Seversk Sector, west of #Belogorovka, Russian troops reportedly approached #Grigorovka. 🔴#ChasovYar Direction: 🔴In #ChasovYar Sector, the battles continues. 🔴In #Toretsk Sector, fighting in the city and to the west for #Shcherbinovka and #Leonidovka continued. 🔴#Pokrovsk Direction: 🔴 On the right Flank, far to the east, fighting continues at #Valentinovka and in the area of #Panteleymonovka (towards #Toretsk northwards). To the west, urban battles in #Tarasovka. 🔴 South of the City, reportedly Russian advance in #Lysovka. Battles at #Shevchenko and #Peschanoye, and in #Kotlino fighting at the the far southeastern edge. 🔴 On the left Flank, the fighting for #Udachnoye's far southeastern reportedly continued. Otherwise, intense combat is taking place along the entire frontline from #Solenoye southwards. 🔴#Komar Direction: 🔴In #Bogatyr Sector, the battles near #Andreyevka and for #Konstantinopol continue. 🟡 In #Razliv, Russian troops extended the zone of control and raised the flag in the centre of the village. 📌Despite several Russian claims, there is no takeover yet! The village boundaries extend to the west, especially the large buildings with blue roofs are located within them. 🎬 Video 🗺 Map 3 🔴 In #Komar Sector, the RFAF are reportedly attacking towards #Otradnoye and #Komar. 🟡 In #Vesyoloye, the battle for the settlement is ongoing. 🔴#Zaporozhye Direction: 🔴In the #Orekhov Section, south of the city, the AFU positions are reportedly under permanent fire; Russian units are attacking towards #Novoandreyevka. To the west, the fighting especially in the 4 contested villages continues: 🟡#Shcherbaki; 🟡#MalyeShcherbakito the west; 🟡#Stepovoye, further west; 🟡#Lobkovoye; 🟡#Pyatikhatki remains RFAF controlled. 🟡 At #Kamenskoye, in the far west, the RFAF reportedly took one of the AFU's key strongholds. 🔴 In #Kherson Direction, Russian aviation struck Ukrainian positions on the opposite bank, while the AFU targeted villages. 💥 For #OldRussia and #RestUkraine, we have found no reports of new mutual strikes. ⚠️ The Term 'Reportedly' indicates that it is unconfirmed! 🎞 Video Source 🗺 Maps @olegtsarov; @petrenko_iHS@creamy_caprice 📋 Sources: CC; Tsarov; 🇺🇦Fiend;⚡️2M;🐈Cat😼VK 🕰As of 1 Apr 2025; 06:38 GMT+3;📃31 Mar 📱 Join GLOBAL DEPTH to boost your TG Feed 💬Join Military Chat for Comments & Discussions 🇺🇦On Ukraine Observer you will find your daily independent Ukraine War Battle Update

DruschbaFM - English

@druschbaFm_en · Post #52724 · 31.03.2025 г., 08:55

⚡️ 🇷🇺 🇺🇦⚔️ Ukraine Fronts on the Morning of 31 March⚡️ 🔴#Sumy Direction: 🔴In #Sudzha Sector, to the west on Ukrainian lands, the AFU counterattacked. Furthermore, video evidence has 👉emerged. As a result, the corrected situation (our added large arrows on map have been always correct) based on confirmed information and evidence is as follows: 🟡#Vladimirovka- AFU; {1st blue⬆️}; 🟡#Vodolagi - AFU {2nd blue⬆️}; 🟡#Uspenovka in Russia - contested {1st black⬆️}; 🟡#Veselovka - contested {2nd black⬆️}; 🟡#Belovody - AFU; 🟡#Zhuravka - contested; 🟡#Basovka - contested. 🟡#Novenkoye, RFAF {1st red⬆️}. 🟡 In #Kursk region, #Gogolevka and the 'Border Checkpoint' are RFAF controlled, an entry in #Oleshnya {4th blue⬅️} remained unconfirmed, fighting towards the village. 🟡 For #Guyevo, the battle continues. 🟡#Gornal is AFU controlled. 🔴In #KrasnayaYaruga Sector, the AFU in #Popovka and surrounding are under constant fire {6th black↙️}. 🟡 In #Demidovka, the battle on the ground continues. 🟡 At #Grafovka and #Prilesye, lull. 🗺 All on Map 1 🔴#Kharkov Direction: 🔴In #Liptsy Section and in #Volchansk, positional battles. 🔴#Svatovo Front: 🔴 In #Kupyansk Sector, Russian troops are expanding the bridgehead north of the city. 🔴In #Liman Sector, the battle for #Katerinovka has begun. 🔴In #Seversk Sector, fighting at #Belogorovka and towards #Verkhnekamenskoye. An entry into the latter remained unconfirmed. 🔴#ChasovYar Direction: 🔴In #ChasovYar Sector, without major changes. 🔴In #Toretsk Sector, the battle for the city continues. To the west, the AFU have further advanced in #Shcherbinovka and entered #Leonidovka. 🗺 Map 2 🔴#Pokrovsk Direction: 🔴 On the right Flank, far to the east, fighting continues in the area of #Panteleymonovka and #Aleksandropol, the full control of which is disputed. Northwest of the former, the RFAF advanced to the southern edge of #Valentinovka. To the west, the battle for #Tarasovka is ongoing. 🔴 South of the City, fighting for #Lysovka. #Shevchenko and #Peschanoye are RFAF controlled for now. East of #Kotlino the AFU advanced; in the village itself the RFAF at best hold the far southeastern edge (see 28 Mar). 🗺 Map 3 🔴 On the left Flank, Russian troops have at best presence in #Udachnoye's far southeastern part. The AFU have breached into #Solenoye. In #Uspenovka the RFAF reentered (earlier reports on clearing have not been confirmed) and attack towards #Novoaleksandrovka (reports on fights inside have not been confirmed). 🗺 Map 3 🟡#Nadezhdinka (#Nadeyevka) has been reentered by Russian forces (in the meantime, they have somehow lost control of the village). 🟡 Towards#Kotlyarovka and #Preobrazhenka, Russian assaults continue. 🔴#Komar Direction: 🔴In #Bogatyr Sector, the battle for #Konstantinopol continues. This contrary to 'Two Majors,' who have emphasised 'liberated' more than once (they know about the real facts). In #Razliv, the RFAF have consolidated their positions in the eastern, central and western parts of the settlement. 🔴 In #Komar Sector, the battle for #Novosyolka has shifted to the village's centre. 🔴#Zaporozhye Direction: 🔴In #Orekhov Section, the fighting continues. 4 villages remain contested: 🟡#Shcherbaki; 🟡#MalyeShcherbakito the west; 🟡#Stepovoye, further west; 🟡#Lobkovoye; 🟡#Pyatikhatki is RFAF controlled. 🗺 Map 4 🔴 In #Kherson Direction, the AFU shell villages. 💥#OldRussia: 🔵 AFU UAVs attacked #Bryansk, #Belgorod and Kursk regions, as well as #Crimea. 💥#RestUkraine: 🔵 The RFAFstruck with Iskanders in the #Sumy region, and 'Geraniums' worked in #Kiev, they reported a massive strike by UAVs on targets in the Zhitomir region. ⚠️ The Term 'Reportedly' indicates that it is unconfirmed, today without! 🗺 Maps @olegtsarov; @z_arhiv 📋 Sources: CC; Tsarov; 🇺🇦Fiend;⚡️2M;🐈Cat😼VK 🕰As of 31 Mar 2025; 07:26 GMT+3;📃29 Mar 📱 Join GLOBAL DEPTH to boost your TG Feed 💬Join Military Chat for Comments & Discussions 🇺🇦On Ukraine Observer you will find your daily independent Ukraine War Battle Update