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

Резултати

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

Пребарај: #trendearagua

当前筛选 #trendearagua清除筛选
Venezuelanalysis

@venanalysis · Post #1858 · 22.01.2025 г., 20:33

Attorney General Tarek William Saab announced ongoing actions to dismantle the Tren de Aragua gang in Venezuela, reporting 48 members detained, several fatalities, and pending Interpol red alerts. Saab also proposed resuming legal cooperation with US authorities to address criminal activities linked to Venezuelan nationals, following the designation of Tren de Aragua as a "foreign terrorist organization" by the Trump administration. 🔗 Read the full report here 👉🏼https://shorturl.at/InuG6 #TrendeAragua#USVenezuelaRelations

Venezuelanalysis

@venanalysis · Post #2095 · 09.09.2025 г., 00:25

📰 NEWS | Trump Hints at Possible Strikes Inside Venezuela Amid Rising Tensions, Maduro Calls for Deescalation US President Donald Trump hinted at possible military strikes inside Venezuela, while denying any intention of regime change. In response, President Nicolás Maduro rejected US drug trafficking claims and called for deescalation. Venezuela has mobilized its armed forces and urged citizens to join the Bolivarian Militia amid rising tensions. 🔗 Read the full report here: https://shorturl.at/oI0IU #DonaldTrump#TrendeAragua#USVenezuelaRelations

Venezuelanalysis

@venanalysis · Post #1889 · 25.02.2025 г., 22:56

📰 NEWS | Venezuela: Deportation Flights Bring Back Women and Children, Guantánamo Detainees A Conviasa flight carrying 242 Venezuelan deportees from Mexico landed in Caracas on Monday. Unlike previous flights, this group included women and children. Interior Minister Diosdado Cabello stated that repatriation efforts continue under the "Return to the Homeland Plan." The Maduro government also condemned the transfer of Venezuelan detainees to Guantánamo Bay, labeling it “unjust.” The February 20 repatriation flight cleared all Venezuelan nationals from the US military facility. Rights groups have challenged the White House’s move over human rights violations. 🔗 Read the full report here: https://shorturl.at/Ur5gR #Migration#TrendeAragua#USVenezuelaRelations

Venezuelanalysis

@venanalysis · Post #2088 · 03.09.2025 г., 21:33

🚨📰 BREAKING | US Strikes Alleged Venezuelan Drug Vessel, Killing 11; Maduro Condemns US ‘Immoral Threat’ US forces struck a vessel allegedly transporting drugs from Venezuela, killing 11 people. Trump said it was the first operation under his “narco-terrorist” designation, though no evidence was provided on the cargo or those on board. Maduro denounced Washington’s military buildup in the Caribbean, citing warships and a nuclear submarine, as an “immoral threat.” He announced Venezuela’s Bolivarian Militia has doubled to 8 million members as part of defense preparations. “If Venezuela were to be attacked, we would constitutionally declare the Republic in arms […] to guarantee the peace, sovereignty and development,” concluded Maduro. 🔗 Read the full report here: https://shorturl.at/OaIeI #DrugTrafficking#NicolasMaduro#TrendeAragua#USMilitaryThreats#USVenezuelaRelations

Venezuelanalysis

@venanalysis · Post #2055 · 06.08.2025 г., 20:56

📰 NEWS | Venezuela: 252 CECOT Migrants Cleared of ‘Tren de Aragua’ Gang Association An investigation by Venezuelan authorities found that none of the 252 migrants deported to El Salvador’s CECOT prison had any ties to the Tren de Aragua gang. The migrants, sent under a Trump-era policy using the Alien Enemies Act, were held for months without legal access. One of them, Neiyerver León Rengel, has filed a formal complaint against the US government for wrongful deportation and mistreatment, seeking $1.3 million in damages. 🔗 Read the full report here: https://shorturl.at/2pTdg #Venezuelanmigrants#HumanRights#DonaldTrump#ElSalvador#TrendeAragua