В прошлом посте говоря "Все вызовы теперь одинаковы" я несколько слукавил. Всё-таки есть в этом зоопарке версий некоторая несовместимость вызов которой просто так не унифицировать. Эти моменты вынесены в отдельный модуль 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
⚡️
🇷🇺
🇺🇦⚔️ Ukraine Fronts on the Morning of 24 March⚡️
🔴#Sumy Direction:
🔴In #Sudzha Sector, west of the embattled #Zhuravka on Ukrainian lands, the RFAF entered the northern outskirts of #Vladimirovka (or came close to; another black arrow on map).
🟡 In #Zhuravka, the battle continues.
🟡 In #Basovka, the RFAF advanced in its southern part.
🟡 At #Novenkoye, the RFAF advanced (1st red arrow).
🟡 In #Kursk region, the situation remained unchanged. #Rubanshchina remains Russian controlled (2nd red arrow), #Gogolevka, #Oleshnya, #Guyevo and #Gornal remain under AFU control for now (4 large blue arrows on map).
🟡 In #Melovoy, the battle continues (small black arrow).
🔴 In #KrasnayaYaruga Sector, the AFU continued to attack and could enter #Demidovka and gain a foothold in the ruined village's southern part. This morning, the battle for it and the adjacent forest plantations continues (red arrow turned to black).
🟡#Grafovka, remains under RFAF control.
🟡#Prilesye as well.
🗺 All on Map 1
📌Given the Events, the 1st AFU's minor interim result at high costs is of no strategic value whatsoever. On the contrary, the overall situation of the AFU has even worsened with the further aforementioned border crossing.
🔴#Kharkov Direction:
🔴In #Liptsy Section, positional battles are taking place. The frontline remained unchanged.
🔴 In #Volchansk Section, the same situation.
🔴#Svatovo Front:
🔴 In #Kupyansk Sector, Russian troops advanced in the eastern and western settlement parts of #Topoli and expanded the bridgehead towards the settlement of #Kamenka from the east.
🟡 In #Dvurechnaya, Russian infantry units advanced within the settlement boundaries.
🔴 In #Borovaya Sector, the AFU retook the settlement of #Nadiya and advanced in its area.
🎬 Video 1
🔴In #Liman Sector, without significant changes.
🔴In #Seversk Sector, as well.
🔴#ChasovYar Direction:
🔴In #ChasovYar Sector, there are reportedly fights in the city's southern 'Shevchenko Microdistrict,' and further south towards #Stupochki village.
🔴In #Toretsk Sector, fighting continues in the northern, central and southern parts of the city.
🔴#Pokrovsk Direction:
🔴 On the right Flank, the RFAF have entered the village of #Vodyanoye2nd west of #Tarasovka.
🗺 Map 2
🎬 Video 2
🔴 South of the City, the heavy fighting continued without any noteworthy results.
🔴 On the left Flank, there are ongoing heavy battles also without any tangible results.
🔴#Komar Direction:
🔴In #Konstantinopol Sector, fighting in and around the village of the same name and throughout the sector is ongoing.
🔴 In #Komar Sector, the battles continued without major changes.
🔴#Zaporozhye Direction:
🔴In the #Orekhov Section, fighting continues in #MalyeShcherbaki, to which Russian troops broke through several days ago and to the west near #Stepovoye.
🔴 In #Kherson Direction, the AFU have still presence in the area of the 'Antonovsky Bridge,' where the RFAF disrupted another AFU rotation. Otherwise Russian artillery and Aerospace Forces are hitting AFU positions and facilities.
💥#OldRussia:
🔵 In #Rostov Region, Russian air defence repelled a massive AFU drone attack on several districts, as well as in #Novoshakhtinsk and on the approach to Rostov at night. In one of the #Voronezh region districts, more than five UAVs were destroyed. In the evening, the RF MoD reported dozens of destroyed drones in the #Crimea, #Belgorod, #Bryansk and #Kursk regions. In #Zaporozhye region, the AFU targeted an ambulance, killing a paramedic. In Pologi district the AFU disrupted the power supply. In the #DPR, 7 civilians were wounded by AFU strikes.
⚠️ This Report contains new info received after the usual 2-Majors morning report.
🎞 Vids Source 1; Source 2;
🗺 Maps @olegtsarov; @creamy_caprice
📋 Sources: CC; Tsarov; ⚡️2M;
🇺🇦Fiend;😼Kotenok
🕰As of 24 Mar 2025; 07:39 GMT+3;📃22 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
⚡️
🇷🇺
🇺🇦⚔️ Ukraine Fronts on the Morning of 4 April⚡️
🔴#Sumy Direction:
🔴In #Sudzha Sector, to the west in Ukrainian lands, the RFAF is reportedly fighting off counterattacks and the battle for #Zhuravka continues.
🟡 In #Basovka's eastern part, Russian mobile groups on quads continue to advance.
🗺 Map 2
🟡 In #Kursk region, the fighting at AFU controlled #Oleshnya continues. According to video evidence, Russian troops have advanced to the centre of #Guyevo.
🔴In #KrasnayaYaruga Sector, the villages of #Popovka and #Demidovka are still embattled. Reportedly the RFAF extended the zone of control.
🗺 All on Map 1
🔴#Kharkov Direction:
🔴In #Liptsy and #Volchansk Sections, mutual shelling.
🔴#Svatovo Front:
🔴 In #Kupyansk Sector, there are battles for #Kamenka, otherwise no major changes.
🔴 In #Borovaya Sector, as well.
🔴In #Liman Sector, the RFAF continue infantry attacks west of #BalkaZhuravka with the aim of stretching the AFU and a subsequent assault on #Katerinovka and #Novoye.
🔴In #Seversk Sector, there are positional battles near #Belogorovka and at #Verkhnekamenskoye fighting continues.
🔴#ChasovYar Direction:
🔴In #ChasovYar Sector, fighting continues without major changes.
🔴In #Toretsk Sector, as well.
🔴#Pokrovsk Direction:
🔴 On the right Flank, far to the east, there are no major changes. Russian troops attack #Valentinovka, and further west the battle for #Tarasovka continues.
🔴 South of the City, heavy clashes with varying success and no significant changes on the frontline for now.
🔴 On the left Flank, Russian units reportedly advanced in the area of #Kotlyarovka - #Bogdanovka and finally entered the outskirts of #Kotlyarovka and #Troitskoye.
🔴#Komar Direction:
🔴In #Bogatyr Sector, Russian troops advanced over a section up to 3 km wide in the area of #Andreyevka.
🟡 Towards #Alekseyevka, the AFU advanced with an armoured column and came under AFU fire. The result of the action is disputed.
🎬 Video
🟡 In #Konstantinopol, the RFAF is trying to get a foothold again.
🗺 All on Map 3
🟡 Towards #Bogatyr, Russian troops reportedly advanced 1 km deep and 1.5 km along the front.
🔴 In #Komar Sector, the Russian takeover of #Vesyoloye has been confirmed by an Ukrainian soldier (according to video evidence, the RFAF have advanced to the southeastern edge), Russian troops reportedly have entered the southern outskirts of #Fyodorovka.
🔴#Zaporozhye Direction:
🔴In the #Orekhov Section, the villages of #Shcherbaki and #MalyeShcherbaki remained embattled. The RFAF reportedly, after taking #Lobkovoye (still unconfirmed), continued to advance in the area of #Stepovoye and #Lobkovoye in northerly and northwestern direction toward #Zaporozhye.
💥 In the #DPR, the AFU wounded two civilians in #Gorlovka by a drone drop.
💥 In #Kherson Direction, mutual shelling. Several villages came under AFU fire, wounding 2 civilians.
💥#OldRussia:
🔵In #Bryansk Region, the border settlement of #BelayaBerezka was hit by AFU drones, wounding 2 civilians. In #Kursk region, Russian air defence downed 17 UAVs. In #Belgorod region, several villages came under AFU fire. Air defence shot down a drone flying toward #Moscow. Over #Rostov and Lipetsk regions, UAVs were destroyed. RF MoD claimed that energy infrastructure in #Kursk, #Belgorod and #Zaporozhye regions as well as in #LPR were subjected to strikes.
💥#RestUkraine:
🔵 The RFAF struck #Kharkov and the surrounding area by 'Geranium' UAVs. Explosions were reported in #Kiev region and #Dnepropetrovsk.
⚠️ The Term 'Reportedly' indicates that it is unconfirmed!
🎞 Video Source
🗺 Maps @olegtsarov; @petrenko_iHS
📋 Sources: CC; Tsarov;
🇺🇦Fiend;⚡️2M;🐈Cat😼VK
🕰As of 4 Apr 2025; 06:33 GMT+3;📃3 Apr
📱 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
⚡️
🇷🇺
🇺🇦⚔️ Ukraine Fronts on the Morning of 26 March⚡️
🔴#Sumy Direction:
🔴In #Sudzha Sector, to the west on Ukrainian lands, for a RFAF presence at #Vladimirovka evidence is still missing (1st blue arrow on map).
🟡 For #Veselovka, the battle continues (1st black arrow).
🟡 In #Zhuravka as well.
🟡#Basovka is at best 50% RFAF controlled.
🟡#Novenkoye, is Russian controlled (1st red arrow).
🟡 In #Kursk region, according to unconfirmed reports, the 'Sudza Gas Transmission Point' is under RFAF control and the battle for the nearby border checkpoint continues (4th black arrow).
🟡#Gogolevka remains under full AFU control (2nd blue arrow). Contrary reports are unproven.
🟡#Melovoy came under the control of Russian troops, which advanced further westwards towards #Oleshnya (2nd red arrow).
🟡#Oleshnya, #Guyevo and #Gornal remain under AFU control for now.
🔴In #KrasnayaYaruga Sector, the AFU 8th Special Forces Regiment and 'Aidar' Nationalists failed to take #Popovka (5th black arrow). Over the past day, the AFU razed the village to the ground with artillery and drones.
🟡 In #Demidovka, nearby to the southeast, Small AFU groups enter periodically, uncapable to take the village (6th black arrow).
🟡 At #Grafovka, lull.
🟡 West of #Prilesye, the AFU have been driven out from Russian territory.
🗺 All on Map 1
🔴 In #Kharkov Direction, positional battles continue In the areas of #Lipsy and #Volchansk. A large number of drones, artillery and aircraft are used.
🔴#Svatovo Front:
🔴 In #Kupyansk Sector, north of the city, Russian forces created a new bridgehead between #Kamenka and #Krasnoye1st. In the area of #Dvurechnaya, the battles continue, as well as on the #Zapadnoye - #Kalinovo line.
🔴 In #Borovaya, #Liman and #Seversk Sectors, without major changes.
🔴#ChasovYar Direction:
🔴In #ChasovYar Sector, heavy urban battles continue in 'Shevchenko Microdistrict' in the southern part of the city. To the south, fighting in the area of #Stupochki.
🔴In #Toretsk Sector, the RFAF continue attempts to take the city, increasing the pressure in its north.
🔴#Pokrovsk Direction:
🔴 On the right Flank, far to the east, Russian troops attack southwest of #Aleksandropol and try to straighten the front.
🔴 South of the City and on the left Flank, no changes.
🔴#Komar Direction:
🔴In #Konstantinopol Sector, the battle for the same named village continues.
🟡 Southeast of #Razliv, the RFAF advanced on a broad front, extending the zone of control in an area up to 4 km wide and up to 2.05 km deep, approaching the settlement located southwest of #Konstantinopol.
🔴 In #Komar Sector, Russian forces repulsed AFU counterattacks in the areas of the #Vesyoloye and #VolnoyePole settlements.
🔴#Zaporozhye Direction:
🔴In #Orekhov Section, the situation based on confirmed and evidenced data has improved for the RFAF:
🟡 In #Shcherbaki, the AFU lost full control.
🟡 In nearby #MalyeShcherbakito the west, the RFAF have advanced. The AFU still hold positions in its far northeast.
🟡 In #Stepovoye's, further west, there are heavy fights in the village.
🎬 Video 1
🗺 Map 2
🟡 In #Lobkovoye, the the RFAF advanced northwards. About 50% of the village came under Russian control.
🗺 Map 2
🟡 #Pyatikhatki, came under full RFAF control yesterday.
🗺 Map 2
🔴 In #Kherson Direction, no changes.
💥#OldRussia:
🔵 In #Belgorod Region, civil objects in #Politodelsky, #Kazinka, #Shebekino, #Tishanka and #Bessonovka came under AFU attack.
💥#RestUkraine:
🔵 The RFAF targeted AFU facilities and militants in #Zaporozhye, #Nikolayev and #Dnepropetrovsk, as well as in #Sumy, #Poltava and #Cherkassy regions.
🟡 In #KrivoyRog, more than 15 explosions occurred overnight.
🎬 Video 2
🎞 Vids Source 1; Source 2;
🗺 Maps @olegtsarov; @creamy_caprice
📋 Sources: CC; Tsarov; ⚡️2M;
🇺🇦Fiend;😼Kotenok
🕰As of 26 Mar 2025; 06:41 GMT+3;📃25 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
⚡️
🇷🇺
🇺🇦⚔️ Ukraine Fronts on the Morning of 19 March⚡️
🔴#Sumy Direction:
🔴In #Sudzha Sector, to the west in #Ukraine, fights in and around #Zhuravka. To the southeast...
🟡 In #Basovka, the RFAF have advanced and the battle has shifted to the southern settlement part.
🟡 In #Kursk region, the battles for the villages of #Gogolevka and #Guyevo continue.
🟡#Oleshnya and #Gornal remain under AFU control.
🗺 Map 1; added arrows show the mentioned locations, black contested
🔴 In #KrasnayaYaruga Sector, the AFU crossed the border in the area of the #Demidovka, #Grafovka and #Prilesye villages south of #Sudhza in #Belgorod region. Several attack waves have been stopped by destroying armoured vehicles. The AFU remnants tried to get a foothold. Fights on Russian territory, especially towards #Demidovka with tank support continued. According to the latest unconfirmed report, the invaders have withdrawn to their initial positions in #Sumy region.
🎬 Video 1
🗺 Map 2
🔴#Kharkov Direction:
🔴In #Liptsy Section, the AFU counterattacked unsuccessfully in the settlement area of #Glubokoye.
🔴 In #Volchansk Section, the battle for the city continues.
🔴#Svatovo Front:
🔴 In #Kupyansk Sector, to the north, the RFAF are advancing from #Topoli southwestwards towards #Kamenka, the eastern approaches of which are also attacked. Furthermore Russian troops advance from the south on the village.
🟡 Near #Krasnoye1st(Pervoye), to the southwest, Russin units are advancing on the settlement.
🟡#Figolevka, located further southwest, has been recaptured by the AFU.
🟡 North of #Kupyansk, Russian units are expanding the bridgehead northeast of #Kondrashovka.
🟡 Northeast of #Kupyansk, the AFU counterattacks in the area of #Petropavlovka.
🔴 In #Borovaya Sector, fierce fighting in the northern outskirts of #Boguslavka continues.
🔴In #Liman Sector, Russian troops have advanced to #BalkaZhuravka's northern settlement outskirts and continue to attack in the westerly direction.
🟡 North of #Torskoye, positional battles are taking place.
🔴In #Seversk Sector, fights in the area of #Bologorofka (#LPR) continue. The AFU still hold positions on the Chalk Quarry (White Mountain) south of the village.
🟡 In #Verkhnekamenskoye, fights for the centre.
🔴#ChasovYar Direction:
🔴In #ChasovYar Sector, fierce battles continue. The AFU counterattacks.
🔴In #Toretsk Sector, the situation is unchanged.
🔴#Pokrovsk Direction:
🔴 South of the City, heavy battles and counterattacks continue. The situation is dynamic.
🟡#Shevchenko has been recaptured by Russian forces. The AFU counterattacks.
🟡 In #Peschanoye, the same situation as for #Shevchenko.
🟡 In #Kotlino, the northwestern outskirts and the cemetery area are embattled.
🔴 On the left Flank, the battle for #Udachnoye continues.
🔴#Komar Direction:
🔴In #Konstantinopol Sector, west of #Andreyevka, the AFU have pushed back Russian assault groups, which attacked towards #Alekseyevka.
🟡 In #Konstantinopol, the RFAF lost control over the village. The AFU have advanced into its centre.
🎬 Video 2
🟡 South of #Konstantinopol, the RFAF expanded their control zone by more than 1 km. The battle for the village continues.
🟡 From #Razdolnoye, Russian units advanced northwards towards #Razliv and #Bogatyr.
🔴 In #Komar Sector, northwest of #VelikayaNovosyolka, the RFAF are building on their success at #Burlatskoye.
🔴#Zaporozhye Direction:
🔴In the #Orekhov Section, we have to clarify that according to objective evidence data, #Shcherbaki, #MalyeShcherbaki and #Stepovoye are still contested.
🔴 In #Kherson Direction, no changes.
💥#OldRussia:
🔵 In #Krasnodar Territory, the AFU struck the 'Kavkazskaya Oil Transshipment Point.' This, after the Trump - Putin call.
🎞 Video 1 Source; 🎞 Video 2 Source
🗺 Maps @olegtsarov
📋 Sources: CC; Tsarov; ⚡️2M;
🇺🇦Fiend; 😼Kotenok
🕰19 Mar 2025; 06:43 GMT+3; #smo
📱 Join GLOBAL DEPTH to boost your TG Feed
💬Welcome to Military Chat & Ukraine Observer
🇺🇦On Ukraine Observer you will find your daily independent Ukraine War Battle Update
⚡️
🇷🇺
🇺🇦⚔️ Ukraine Fronts on the Morning of 5 April⚡️
🔴#Sumy Direction:
🔴In #Sudzha Sector, to the west on Ukrainian soil, the battles for #Veselovka and #Zuravka continue.
🟡#Basovka has reportedly been captured by Russian forces {3rd black⬆️}.
🟡 In #Kursk region, the AFU still controls #Oleshnya. South of #Guyevo, there is reportedly fighting along the road to 'St. Nicholas Monastery' which is part of AFU controlled #Gornal.
🔴In #KrasnayaYaruga Sector, the villages of #Popovka and #Demidovka remain contested. Fighting continues.
🗺 All on Map 1
🔴#Kharkov Direction:
🔴In #Liptsy and #Volchansk Sections, positional battles, no change.
🔴#Svatovo Front:
🔴 In #Kupyansk Sector, intense fighting in the area of Oskol bridgeheads north of the city:
#Kamenka has been entered by Russians troops.
🗺 Map 2
🟡 For #Figolevka, to the south, reportedly the battle has begun again. About 2 weeks ago the AFU recaptured the settlement.
🟡 In #Kondrashovka's northeastern part, fighting continues, as well to its northwest in nearby #MalayaShapkovka's southeastern part (unconfirmed).
🔴 In #Borovaya Sector, without changes.
🔴In #Liman Sector, battles are taking place west of #BalkaZhuravka. The RFAF took #Novolyubovka. To the west, fighting towards #Novoye and #Katerinovka continues.
🔴For #Seversk Sector, no news.
🔴#ChasovYar Direction:
🔴In #ChasovYar and #Toretsk Sectors, without major changes.
🔴#Pokrovsk Direction:
🔴 On the right Flank, the battle for #Tarasovka is ongoing. Otherwise no major changes.
🔴 South of the City, the situation is reportedly as follows:
🟡 Near #SukhoyYar (AFU controlled), there are positional battles.
🟡#Lysovka is mostly under Russian control, with exception of its northwestern part.
🟡 At #Zelenoye' northeastern outskirts, there are counter-fights.
🟡 At #Novoukrainka, Russian forces press towards the settlement.
🟡#Shevchenko is RFAF controlled.
🟡 Northeast of #Peschanoye and in #Zverevo, Russian assault units are attacking.
🟡 In #Kotlino's northwestern part, counterattacks take place. The AFU try unsuccessfully to enter the settlement's industrial zone (which should be east of the mostly AFU controlled village).
🔴 On the left Flank, reportedly fierce counterbattles in the area of #Udachnoye. RFAF assault units are restoring the situation in the village's northern part and have made significant progress in the residential area towards the central part.
🟡#Uspenovka, according to RF MoD claims, shall been taken.
🔴#Komar Direction:
🔴In #Bogatyr Sector, fighting at #Andreyevka and for #Konstantinopol continued. Near #Bogatyr, the RFAF reportedly extended their control zone.
🔴 In #Komar Sector, no major changes.
🔴#Zaporozhye Direction:
🔴In the #Orekhov Section, the RFAF advanced along the forest belts south of #Kamenskoye to a depth of up to 500 m. Otherwise no major changes.
💥 In the #DPR, the AFU struck #Gorlovka, killing a woman and wounding 5 more civilians.
💥 In #Kherson Direction, the AFU struck several villages, wounding civilians.
💥#OldRussia:
🔵 In #Bryansk Region, the AFU damaged a PS in the village of #Lemeshovka, violating the agreement. Also several villages and an agricultural enterprise have been attacked.
🟡 In#Samara region, UAVs hit the 'JSC Promsintez Plant' in #Chapayevsk, which produces explosives.
🟡 In the Republic of #Mordovia, UAVs have hit the 'JSC Optic Fiber Systems Plant' in #Saransk, crucial for the RF defence industry.
📸 Picture
💥#RestUkraine:
🔵 The RFAF struck targets in #Kiev, #Zhitomir, #Sumy, #Vinnitsa and #Cherkassy regions at night.
🟡 In #KrivoyRog, there was a massive UAV attack. Claims on an alleged missile strike are contradictory, the published footage does not allow the incident to be assessed.
🎬 Video
⚠️ The Term 'Reportedly' indicates that it is unconfirmed!
🗺 Maps @olegtsarov; @petrenko_iHS
📋 Sources: CC; Tsarov; 🇺🇦Fiend;⚡️2M;🐈Cat😼VK
🕰As of 5 Apr 2025; 06:36 GMT+3;📃4 Apr
📱 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