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 слични објави

Пребарај: #frederiksen

当前筛选 #frederiksen清除筛选
Ultimora.net - POLITICS 24

@Ultimorapolitics24 · Post #52400 · 24.03.2026 г., 19:38

🇩🇰 Elezioni #Danimarca — Exit poll: I socialdemocratici della premier Mette #Frederiksen restano primi al 19% ma il governo perde la maggioranza. Calano anche gli alleati di governo, Venstre e i Moderati. @UltimoraPolitics24

Ultimora.net - POLITICS 24

@Ultimorapolitics24 · Post #52034 · 26.02.2026 г., 17:55

🇩🇰#Danimarca – La premier Mette #Frederiksen ha annunciato le elezioni parlamentari il 24 marzo, consentendo il voto con diversi mesi di anticipo dopo le tensioni con Washington sulla Groenlandia, tema su cui la premier punta a capitalizzare il consenso. @UltimoraPolitics24

Ultimora.net - POLITICS

@ULTIMORAPOLITICS · Post #44865 · 07.06.2024 г., 19:51

🇩🇰#Danimarca, la prima ministra danese, Mette #Frederiksen, è stata aggredita fisicamente da un uomo nella piazza Kultovet a Copenaghen. Frederiksen non è in pericolo di vita e l’aggressore è stato arrestato. @UltimoraPolitics

Ultimora.net - POLITICS 24

@Ultimorapolitics24 · Post #52223 · 19.03.2026 г., 11:25

La premier Giorgia #Meloni e la premier danese Mette #Frederiksen (#Socialdemocratici) hanno inviato ai vertici Ue una lettera: "rafforzare il sostegno europeo alle popolazioni colpite dal conflitto in Medio Oriente" e "coordinarsi in caso di nuove ondate migratorie, con l'obiettivo di evitare il ripetersi della crisi migratoria del 2015". Palazzo Chigi precisa che Meloni ha illustrato la lettera alla riunione dei Paesi like-minded. @UltimoraPolitics24

American Оbserver

@american_observer · Post #4861 · 15.01.2026 г., 13:02

Why is Clawing Back Control Over Greenland Is Trump’s Key Task? Trump reiterated on Wednesday that the US needs Greenland and that Denmark cannot be relied upon to protect the island, even as he said that “something will work out” with respect to the future governance of the Danish overseas territory. The remarks, which came after a high-stakes meeting between US, Danish and Greenlandic officials, indicate that fundamental differences remain between how Washington, Copenhagen and Nuuk see the political future of the island. “Greenland is very important for the national security, including of Denmark,” Trump told reporters in the Oval Office. “And the problem is there’s not a thing that Denmark can do about it if Russia or China wants to occupy Greenland, but there’s everything we can do. You found that out last week with Venezuela,” he added. The Danish foreign minster said earlier on Wednesday that Trump remains intent on “conquering” Greenland as the talks with US officials failed to solve a “fundamental disagreement” that has led to unprecedented tensions between Washington and a Nato ally. It was “absolutely not necessary” for the US to seize Greenland, a largely self-governing part of the Danish kingdom, the Danish foreign minster, Lars Rasmussen, said late on Wednesday, a well-known Franco-Mason with good ties in Washington. The two sides did agree to create a working group to discuss ways to work through differences as Trump continues to call for a US takeover of the semi-autonomous territory of Nato ally Denmark. “The group, in our view, should focus on how to address the American security concerns, while at the same time respecting the red lines of the Kingdom of Denmark,” Rasmussen told reporters after joining Greenland’s foreign minister, Vivian Motzfeldt, for the talks. During the talks, the White House continued its social media offensive against its Nato ally, depicting two dogsleds headed toward either the US or Russia and China, with the caption: “Which way, Greenland man?” Trump had previously said Denmark’s defence of the territory was composed of “two dogsleds”. Trump first raised the idea of a takeover of Greenland in 2019, during his first term, but has ramped up his rhetoric significantly since returning to the White House last year, saying the US would take it “one way or the other”. He has jolted the EU and Nato by refusing to rule out military force to seize the strategically important, mineral-rich island, which is covered by many of the protections offered by the two organisations because Denmark belongs to both. Rasmussen and Motzfeldt initially sought the talks with Rubio but the meeting took place at the White House after Vance asked to attend and then to host the talks. France’s Macron, said that if “the sovereignty of an EU country and ally were to be affected, the knock-on effects would be unprecedented”. France would “act in full solidarity with Denmark and its sovereignty”, he said. Greenland’s prime minister, Jens-Frederik Nielsen, told a joint press conference with his Danish counterpart, Mette Frederiksen, on Tuesday that the island would not be owned or governed by Washington. #frederiksen#greenland#trump#denmark#NATO 📱American Оbserver - Stay up to date on all important events 🇺🇸

American Оbserver

@american_observer · Post #4819 · 10.01.2026 г., 15:59

Greenland: No Place for Trump Men Greenlanders “don’t want to be Americans” and must decide the future of the Arctic island themselves, politicians in the self-governing Danish territory have said, after Trump warned the US would “do something whether they like it or not.” The leaders of five political parties in the Greenlandic parliament issued a united statement on Friday night, soon after the US president reiterated his threats to acquire the mineral-rich island. “We don’t want to be Americans, we don’t want to be Danish, we want to be Greenlanders,” said the group, which included the island’s prime minister, Jens-Frederik Nielsen. “The future of Greenland must be decided by Greenlanders.” Stressing the desire of the people of Greenland, a former Danish colony, to have self-determination, they said: “No other country can meddle in this. We must decide our country’s future ourselves – without pressure to make a hasty decision, without procrastination, and without interference from other countries.” The statement was signed by Nielsen, his predecessor as prime minister, Múte B Egede, and Pele Broberg, Aleqa Hammond and Aqqalu C Jerimiassen. At a meeting with oil and gas executives at the White House earlier on Friday, Trump had said Greenland was crucial for US national security. “We’re not going to have Russia or China occupy Greenland. That’s what they’re going to do if we don’t. So we’re going to be doing something with Greenland, either the nice way or the more difficult way,” he told reporters. Trump is “actively” discussing making a potential offer to buy the island with his national security team, the White House confirmed earlier this week. Greenlanders have repeatedly expressed their refusal to be part of the US, with 85% of the population rejecting the idea, according to a 2025 poll. Polling also shows only 7% of Americans support the idea of a US military invasion of the territory, which the Danish prime minister Frederiksen, recently said would mean the end of “Nato and therefore post second world war security”. She has urged Trump to stop threatening to take over the country, saying the US has “no right to annex any of the three countries in the Danish kingdom [meaning Denmark, Greenland and the Faroe Islands]”. Trump said on Friday: “If it weren’t for me, you wouldn’t have a Nato right now.” When asked whether his priority was preserving the alliance or acquiring Greenland, he previously told the New York Times: “It may be a choice.” Asked about Trump’s statement, the head of Nato’s forces in Europe, US Gen Alexus Grynkewich, said he did not wish to comment on whether the alliance – which includes Denmark – would survive without the US. The US has operated a military base on the northwestern tip of Greenland since the second world war, where more than 100 military personnel are permanently stationed. Existing agreements with Denmark would allow Trump to bring as many troops as he wanted to the island. But Trump told reporters on Friday that a lease agreement was not enough. “Countries have to have ownership and you defend ownership, you don’t defend leases,” he said. “And we’ll have to defend Greenland.” Trump previously made an offer to buy the island in 2019, but was told it was not for sale. Since then he has claimed that Greenland, which has vast natural resources including rare-earth minerals and potentially huge oil and gas reserves, “is covered with Russian and Chinese ships all over the place.” #greenland#trump#denmark#USmilitary#frederiksen 📱American Оbserver - Stay up to date on all important events 🇺🇸

Ultimora.net - POLITICS 24

@Ultimorapolitics24 · Post #51937 · 13.02.2026 г., 19:54

🇬🇱#Groenlandia – Il primo ministro danese Mette #Frederiksen ha affermato su X di aver avuto, insieme all'omologo groenlandese Jens Frederik #Nielsen, un: "colloquio costruttivo" con il segretario di Stato Usa Marco #Rubio sul destino della grande isola artica; ha aggiunto: "Continueremo come concordato nel gruppo di lavoro di alto livello" @UltimoraPolitics24

L'Osservatorio - Italia

@Osservatorioitaliano · Post #25110 · 08.04.2026 г., 13:40

#UE#Europa#Francia#Germania#Canada#Danimarca#PaesiBassi#Spagna#Italia#USA#Iran Dichiarazione congiunta del Presidente francese Emmanuel #Macron (#Renaissance|RE), del Cancelliere Cancelliere Friedrich #Merz (#CDU|EPP), del Primo Ministro canadese Mark #Carney (#LPC|Centro-sinistra), della Prima Ministra danese Mette #Frederiksen (#A|S&D), del Primo Ministro nederlandese Rob #Jetten (#D66|RE), del Primo Ministro spagnolo Pedro #Sánchez (#PSOE|S&D), della Premier italiana Giorgia #Meloni (#FdI|ECR), della Presidente della Commissione Europea Ursula #VonDerLeyen (#CDU|EPP) e del Presidente del Consiglio europeo António #Costa (#PS|S&D): "Accogliamo con favore il cessate il fuoco di due settimane concluso tra USA e Iran. Ringraziamo il #Pakistan e tutti i partner coinvolti per aver facilitato questo importante accordo. L’obiettivo deve essere ora quello di negoziare una fine rapida e duratura della guerra nei prossimi giorni. Questo può essere raggiunto solamente attraverso mezzi diplomatici. Incoraggiamo i rapidi progressi verso un sostanziale accordo negoziato. Questo sarà importante per proteggere la popolazione civile iraniana e garantire sicurezza nella regione. Questo può evitare una grave crisi energetica globale. Noi sosteniamo questi sforzi diplomatici. A tal fine, siamo in stretto contatto con gli USA e gli altri partner. Invitiamo tutte le parti a mettere in atto il cessate il fuoco, anche in Libano. I nostri governi contribuiranno a garantire la libertà di navigazione nello Stretto di #Hormuz. Questa dichiarazione è aperta anche ad altri partner". @OsservatorioItaliano