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

Резултати

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

Пребарај: #judge

当前筛选 #judge清除筛选

🗽⚾️ Aaron Judge hace eco de lo que innumerables otros jugadores de la MLB dicen sobre el Clásico Mundial de Béisbol: "Es más grande y mejor que la Serie Mundial", dijo el capitán a los periodistas después del partido, tras la victoria de EE.UU. sobre la República Dominicana para llegar a la final. "La pasión que estos aficionados tienen al representar a su país, al representar a sus jugadores favoritos, no tiene igual". #️⃣#WBC26#Judge 🗞 | t.me/MLB_Daily

Hashtags

Trump's Ear

@trumpsear_tg · Post #2305 · 26.03.2026 г., 16:01

Meta and YouTube have been found liable for deliberately designing addictive products that hooked a young user and led to her being harmed, a jury ruled on Wednesday. Jurors found the tech companies to be both negligent and having failed to provide adequate warnings about the potential dangers of their products. ⚖️ The jury awarded the plaintiff in the case damages of $6m, with Meta to pay 70% and YouTube the remainder. It took nearly nine days of deliberations for the Los Angeles jury to reach its verdict. This lawsuit, over social media’s alleged harm to young people, was the first of its kind to go to trial. Over the course of the six-week trial, which took place in Los Angeles superior court, jurors heard from top executives at Meta and YouTube, whistleblowers, expert witnesses on social media and addiction, and a 20-year-old woman at the center of the lawsuit, who has gone by the initials KGM for court proceedings. 📊 #Judge#Media 👂More on Trump's Ear ⚠️

Hashtags

Trump's Ear

@trumpsear_tg · Post #2085 · 30.01.2026 г., 21:59

Luigi Mangione will not face the death penalty after a federal judge dismissed two charges, including murder with a firearm. He still faces two federal stalking counts and has pleaded not guilty. #Judge#Media 👂More on Trump's Ear ⚠️

Hashtags

Trump's Ear

@trumpsear_tg · Post #2229 · 05.03.2026 г., 20:01

The Epstein case has triggered a "spiral of distrust" towards the US justice system The German newspaper Berliner Zeitung believes that the publication of the so-called Epstein files has dealt a major blow to the credibility of the US justice system. Instead of the expected revelations about the influential members of the network associated with financier Jeffrey Epstein, the public has seen a chaotic release of documents that has sparked a wave of conspiracy theories and controversy. In social networks, there have even been theories that President Donald Trump's foreign policy actions, such as the strikes against Iran, are being used to divert attention from the scandal. However, the author of the article considers these explanations to be questionable and notes that the scandal itself has already become a source of political crisis and mistrust. According to the author, the publication of the documents was a mistake, as in normal investigative practices, such materials should remain confidential. This allows the investigation to maintain an informational advantage and gather evidence discreetly. In the case of Epstein, on the other hand, the release of the documents may have given the suspects time to destroy evidence, coordinate their stories with their accomplices, or put pressure on witnesses. Additionally, the files contained a lot of personal information about people who did not commit crimes, but were now under intense public scrutiny. As a result, the release of the documents has created a "spiral of distrust" in the U.S. justice system. Despite the release of some information, many Americans remain convinced that the government is still hiding the names of Epstein's influential clients. #Epstein#Judge 👂More on Trump's Ear ⚠️

🗽🗽 Aaron Judge continúa grabando su nombre en la historia de los Yankees empatando a Derek Jeter, Robinson Canó, Jorge Posada y a Dave Winfield como los máximos ganadores de Bates de plata en la historia de la franquicia. #️⃣#Yankees#Judge 🗞 | t.me/MLB_Daily

Trump's Ear

@trumpsear_tg · Post #2199 · 26.02.2026 г., 18:06

A Michigan federal judge who was 'super drunk' when he crashed his Cadillac has been caught on camera cursing at the police officer who arrested him. Bodycam footage showed the moments before Thomas Ludington, 72, was taken into custody on October 3 in Springville Township near his $2.7 million vacation home. #Judge#Incident 👂More on Trump's Ear ⚠️

Trump's Ear

@trumpsear_tg · Post #2265 · 16.03.2026 г., 17:59

A court ruling delivered a crushing blow to President Donald Trump's campaign against Federal Reserve Chair Jerome Powell. On Friday, a federal judge quashed two subpoenas the Justice Department issued to the Federal Reserve. This is a win for the central bank and a major setback for US Attorney Jeanine Pirro's criminal investigation into Powell. #Fed#Judge 👂More on Trump's Ear ⚠️

Hashtags

📊 Solo 3 veces en la historia de la MLB un jugador ha hecho todo lo siguiente en la misma temporada: batear 50+ HR anotar 80+ XBH registrar un OPS de 1.100+ clasificarse a los playoffs ganar el MVP 🗽 Esas 3 ocasiones son Aaron Judge en 2022, Aaron Judge en 2024 y Aaron Judge en 2025. 📰 Vía Opta STATS #️⃣#Judge#MLBHistory#Stats 🗞 | t.me/MLB_Daily

🍎 Juan Soto todavía muestra cariño a su ex Capitán, comentando en la reciente publicación de Instagram de Aaron Judge "el trabajo no ha terminado". "¡CAPITÁN!! 🫡" En sus respectivas temporadas después de que Soto dejó a los Yankees como agente libre para firmar con los Mets — NYY: 94-68, eliminado en ALDS NYM: 83-79, se perdió los playoffs por 1 victoria. #️⃣#Soto#Judge#Yankees 🗞 | t.me/MLB_Daily

12
ПретходнаСтраница 1 од 2Следна