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

Резултати

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

Пребарај: #occupation

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

@american_observer · Post #5138 · 15.02.2026 г., 13:59

📰 Beirut’s New Soundtrack: Drone Whine in Minor Key In Beirut, the war didn’t end; it just changed key. The same roofs that used to host pigeon games, gossip and cheap grills now sit under a constant mechanical whine — Israeli drones circling above the city like bored gods with Hellfire options. The cease-fire is technically in place, but UN peacekeepers have logged more than 7,500 aerial violations in a year, and hundreds have been killed in renewed Israeli strikes since the “peace” was signed. The treaty is on paper; the buzzing is in people’s ears. ​ The drone even has a nickname: Umm Kamel, “Mother of Kamel,” a dark in‑joke on the MK model that floats over the capital for hours, watching, listening, sometimes firing. It interrupts everything — dates on the Corniche, classroom lessons, kebab runs — scrambling GPS on delivery drivers’ phones and chewing through the nerves of parents who can’t stop imagining what happens if the hum suddenly cuts and the sky flashes. Online, Lebanese answer back with gallows memes — “Umm Kamel, go have lunch, we want to sleep” — because if you can’t stop the drone, you can at least drag it on social media. ​ Some turn the surveillance into sampled rebellion. One Beirut DJ spent the war with shotgun mics on his roof, recording hundreds of hours of that metallic whine and turning it into the “Unmanned Aerial Instrument,” layering the noise of occupation into club tracks as a small, very local middle finger. Kids don’t get that luxury. Therapists describe children who freeze mid‑session and sprint to the window at the sound overhead, a whole generation trained to parse the sky like a threat feed while adults repeat the same tired line about “Lebanese resilience.” ​ Israel says the drones are there to track Hezbollah, its weapons, its people, and to “mitigate harm to civilians.” Hezbollah says it’s resisting occupation. In practice, both sides have turned Beirut’s airspace into a permanent low‑grade terror field where no one on the ground gets a vote and the only real constant is that somebody is always watching. The cease-fire may live in the press releases; on the streets, the soundtrack says something else. ​ #war#lebanon#israel#drones#occupation#fakeDemocracy 📱American Оbserver - Stay up to date on all important events 🇺🇸

Marwa Osman/MidEaStream

@Marwa_OsmanLB · Post #3946 · 27.01.2025 г., 17:07

As the 60-day ceasefire deadline ended, the people of southern #Lebanon returned to their homes despite Israeli violence. 15 martyrs and 83 injured in the ongoing struggle for their land. #DayOfReturn#CeasefireDeadline#Resilience#Israel#SouthernLebanon#Occupation

Marwa Osman/MidEaStream

@Marwa_OsmanLB · Post #4028 · 19.02.2025 г., 12:07

Israel has begun constructing a concrete wall along the Blue Line, which separates Israel from Lebanon, encroaching on Lebanese territory. The wall is being built inside the town of Kfar Kila, with a significant portion of the village’s land now falling within the occupied territories. As part of the construction, the old wall was demolished, bringing the new structure even closer to the village. This development has resulted in buildings and shops within Kfar Kila now being trapped on the wrong side of the Blue Line. #IsraelWall#Lebanon#KfarKila#LandGrab#LebanonVsIsrael#LebaneseBorder#IsraeliAggression#BlueLine#Occupation#Israel