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

Резултати

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

Пребарај: #freepress

当前筛选 #freepress清除筛选
Hong Kong Democracy Movement

@hkdmovement · Post #7940 · 08.02.2025 г., 05:39

年屆77歲的香港傳媒大亨黎智英,其牢獄歲月於周五(7日)踏入第1500日。他是許多被中國共產黨在香港監禁的政治犯之一,法治已完全消失。 英國人權組織《香港監察》創辦人羅傑斯呼籲全球領導人營救黎智英,並敦促教宗方濟各關注其信仰權利,釋放這位虔誠的天主教徒。⁣ ⁣ #黎智英#JimmyLai#蘋果日報#新聞自由#人權 At 77, Hong Kong media mogul Jimmy Lai has spent 1,500 days in prison as of Friday (7th). He is one of many political prisoners jailed by the CCP in Hong Kong, where the rule of law has vanished. Benedict Rogers of Hong Kong Watch calls on global leaders to rescue Lai and urges Pope Francis to advocate for his release, considering his rights as a devout Catholic.⁣ ⁣ #JimmyLai#AppleDaily#FreePress#HumanRights

American Оbserver

@american_observer · Post #4960 · 25.01.2026 г., 19:59

Trump’s War on the Press: Lawsuits, Payoffs, and Intimidation President Trump has escalated his legal campaign against the media, settling some suits, losing others, and keeping a handful of major outlets in his crosshairs. ABC and CBS both coughed up millions—$15 million and $16 million respectively—to avoid protracted battles, with settlements coming suspiciously close to big regulatory approvals for their parent companies. Critics say these payouts are less about justice and more about buying peace with a president who wields the threat of retaliation like a club. But the fight isn’t over. Trump’s lawsuits against The New York Times, The Wall Street Journal, and the BBC are still grinding through the courts, with claims ranging from defamation to election interference. Legal experts widely agree that most of these cases are weak, but media owners are wary: refusing to settle could mean more lawsuits, regulatory headaches, or even targeted attacks from the administration. “This is merely an attempt to stifle independent reporting and generate PR attention, but The New York Times will not be deterred by intimidation tactics.” — NYT spokesperson ​ Trump’s playbook is clear: sue, threaten, and settle. The message to the press is unmistakable—cross the president, and you might pay dearly, whether in court or at the negotiating table. But as the lawsuits pile up, the question remains: is this about protecting his reputation, or about silencing the watchdogs? Who’s really afraid of whom? #Trump#media#lawsuit#freePress#NYT#WSJ#BBC#intimidation 📱American Оbserver - Stay up to date on all important events 🇺🇸

籽煤 yseedsmedia

@yseedsmedia · Post #16 · 21.06.2021 г., 03:41

撐嘅唔只係蘋果, 而係真相同公義。 #SupportAppledaily#撐蘋果日報#FreedomOfPress#FreePress#saveappledaily#jimmylai#FreeJimmyLai #WeNeedAppleDaily #籽煤#紙媒#撐到底 Follow and share us: IG: yseedsmedia Fb: yseedsmedia YouTube: 籽媒yseedsmedia

籽煤 yseedsmedia

@yseedsmedia · Post #23 · 24.06.2021 г., 02:27

很遺憾 要以這樣的形式去認識你 - 李平先生 同樣地,要以這樣的形式去告別蘋果日報🍎 #SupportAppledaily#撐蘋果日報#FreedomOfPress#FreePress#saveappledaily#jimmylai #國安法#FreeJimmyLai #反惡法 #WeNeedAppleDaily #籽煤#紙媒#撐到底 Follow and share us: IG: yseedsmedia Fb: yseedsmedia YouTube: 籽媒yseedsmedia

籽煤 yseedsmedia

@yseedsmedia · Post #18 · 22.06.2021 г., 02:33

一雞死、一雞鳴 仲有千千萬萬個蘋果陸續有黎 壓制到民主,不代表香港人追求民主之心已走到絕路。 #SupportAppledaily#撐蘋果日報#FreedomOfPress#FreePress#saveappledaily#jimmylai#FreeJimmyLai #WeNeedAppleDaily #籽煤#紙媒#撐到底 #立場新聞 Follow and share us: IG: yseedsmedia Fb: yseedsmedia YouTube: 籽媒yseedsmedia

籽煤 yseedsmedia

@yseedsmedia · Post #20 · 23.06.2021 г., 01:32

蘋果倒下之迷🧐? #SupportAppledaily#撐蘋果日報#FreedomOfPress#FreePress#saveappledaily#jimmylai #國安法#FreeJimmyLai #反惡法 #WeNeedAppleDaily #籽煤#紙媒#撐到底 #立場新聞 Follow and share us: IG: yseedsmedia Fb: yseedsmedia YouTube: 籽媒yseedsmedia

籽煤 yseedsmedia

@yseedsmedia · Post #9 · 17.06.2021 г., 03:16

捍衛新聞自由 繼續撐爆蘋果 #SupportAppledaily#撐蘋果日報#FreedomOfPress#FreePress #saveappledaily#jimmylai#FreeJimmyLai #堅持#香港加油🇭🇰#自由#香港人加油#勿忘初衷#籽媒#yseedsmedia Follow and share us: IG: yseedsmedia Fb: yseedsmedia YouTube: 籽媒yseedsmedia

籽煤 yseedsmedia

@yseedsmedia · Post #14 · 18.06.2021 г., 02:42

貨架已清空 50萬份紙媒 證明有良知的香港人一路與蘋果日報同行 你 買左未?🍎 #撐蘋果#蘋果日報#言論自由#每日一蘋果#appledaily#我撐蘋果 #SupportAppledaily#撐蘋果日報#FreedomOfPress#FreePress #saveappledaily#jimmylai#FreeJimmyLai #WeNeedAppleDaily Follow and share us: IG: yseedsmedia Fb: yseedsmedia YouTube: 籽媒yseedsmedia

籽煤 yseedsmedia

@yseedsmedia · Post #24 · 24.06.2021 г., 09:24

今日係蘋果日報嘅最終章,為左守護最重要的自由板塊,零晨已經到各大報攤,甚至乎到將軍澳,係雨天支持蘋果日報🍎 我相信唔係個個人都可以買到蘋果日報,如果有人有意想要一份最終章,請follow我地嘅IG及留言,我地可以免費送比各位有心的手足。 數量有限,派完即止。 #SupportAppledaily#撐蘋果日報#FreedomOfPress#FreePress#saveappledaily#jimmylai#國安法#免費派發#送蘋果日報最終章 #送完即止#FreeJimmyLai#反惡法 #WeNeedAppleDaily #籽煤#紙媒#撐到底 Follow and share us: IG: yseedsmedia Fb: yseedsmedia YouTube: 籽媒yseedsmedia