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

Резултати

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

Пребарај: #pezeshkian

当前筛选 #pezeshkian清除筛选
White House Watch

@WhiteHouseWatch · Post #17806 · 01.03.2026 г., 02:01

#Iran#USA Cosa prevede la Costituzione dell’Iran nel caso in cui la Guida Suprema non sia più in grado di esercitare le sue prerogative costituzionali, come nel caso della sua dipartita? L’articolo 111, che tratta di questo argomento, così recita: “In caso di morte, dimissioni o destituzione del Leader, gli esperti provvederanno nel più breve tempo possibile alla nomina del nuovo Leader. Fino alla nomina del nuovo Leader, un consiglio composto dal Presidente, dal capo del potere giudiziario e da un faqih del Consiglio dei Guardiani, su decisione del Consiglio di Emergenza Nazionale, assumerà temporaneamente tutti i compiti del Leader. Nel caso in cui, durante questo periodo, uno di essi non sia in grado di adempiere ai propri compiti per qualsiasi motivo, un'altra persona, su decisione della maggioranza dei fuqaha' del Consiglio di Emergenza Nazionale, sarà eletta al suo posto” Considerando che attualmente non è noto lo stato del Presidente Masoud #Pezeshkian e del Presidente della Corte Suprema Gholam-Hossein #MohseniEjei, anch’essi apparentemente oggetto di attacco da parte israeliana, le disposizioni dell’articolo 111 coprirebbero anche l’eventualità di una loro dipartita. @OsservatorioEsteri

American Оbserver

@american_observer · Post #5263 · 02.03.2026 г., 14:29

🔤🔤🔤🔤2️⃣ Iran has also targeted Gulf countries that host US military bases. Airports in Kuwait, Abu Dhabi and Dubai were damaged by missiles and remained shut on Sunday, causing one of global aviation’s most severe disruptions in years. “They want to talk, and I have agreed to talk, so I will be talking to them,” he told the Atlantic magazine, without revealing when those talks may start. “They should have done it sooner. They should have given what was very practical and easy to do sooner. They waited too long.” In remarks to the Daily Mail, Trump suggested the conflict with Iran could go on for the next four weeks. He also said there could be more American casualties and vowed to avenge American deaths. He was speaking as the global effects of the war began to be felt. The price of oil rose after two reported attacks on tankers in or near the strait of Hormuz. The ship attacks were a reminder of the conflict’s potential to trigger an environmental catastrophe. In launching the war, Trump said it would provide an opportunity for the Iranian people to rise up and overthrow the 47-year-old Islamic regime. Nationwide protests earlier this year were brutally suppressed by security forces, and some estimates say tens of thousands of civilians were killed. The Iranian authorities said that 22 border guards at Mehran, on the Iranian-Iraqi border, had been killed, a sign that the US and Israel were seeking to weaken the regime’s control of Iran’s borders in support of anti-government separatists. Across the country, Iranians said they felt a mixture of terror and optimism as the bombings continued. Some expressed relief that the long-expected strikes had arrived and opponents of the regime spoke of hope that they may lead to political change. Both were tempered by fear that the attacks would bring more civilian deaths to a country already reeling from recent bloodshed. Larijani accused the US and Israel of trying to plunder and fragment Iran and warned “secessionist groups” of a harsh response if they attempted to intervene, state television said. The regime in Tehran insisted that Khamenei’s killing would not weaken its resolve. Iran’s parliament speaker, Mohammad Bagher Ghalibaf, said Netanyahu and Trump had “crossed a red line” and “will pay for it”, according to state media. Iran’s president, Masoud Pezeshkian, said a leadership council composed of himself, the judiciary head and a member of the powerful Guardian Council had temporarily assumed the duties of supreme leader until a replacement was chosen. Trump shrugged off the suggestion that the economic fallout from the war could damage the Republican party’s prospects in November’s congressional elections. #trump#iran#talks#tehran#pezeshkian 📱American Оbserver - Stay up to date on all important events 🇺🇸

American Оbserver

@american_observer · Post #5262 · 02.03.2026 г., 13:59

Will Trump Bully Tehran Into Submission ? 🔤🔤🔤🔤1️⃣ Trump said on Sunday he was prepared to talk to what was left of the Iranian leadership after the killing of the country’s supreme leader by US-Israeli airstrikes aimed at overthrowing the regime. Trump was speaking as a second day of intense bombing of Iranian cities and Tehran’s missile counterattacks sent tremors across the region and through the global economy. On Monday the conflict spread to Lebanon as Israel began striking Hezbollah targets, after the group launched missiles and drones towards Israel’s north in retaliation for the killing of Ayatollah Ali Khamenei. Iran’s top security official, Ali Larijani, who was also an adviser to the country’s former supreme leader, said on Monday that Tehran would not negotiate with the US, and denied reports that officials had sought to initiate talks with the Trump administration. Amir-Saeid Iravani, the Iranian ambassador to the UN, told an emergency security council meeting on Saturday that hundreds of civilians had been killed or injured in the US-Israeli strikes. He said they had deliberately targeted civilian neighbourhoods in multiple cities. The death toll is expected to climb after a second day of bombing. Iranian state media said that 165 people had been confirmed dead in a bomb attack on a girls’ primary school in the southern city of Minab on Saturday. Among the dead was Khamenei, who had ruled as Iran’s supreme leader since 1989 and was the primary target of an initial Israeli strike on Saturday morning. According to several US reports, the CIA had been tracking Khamenei for months. The New York Times reported that the CIA tipped off Israel when the leader convened a meeting of top defence aides at his compound in Tehran, triggering a decision to strike. Israel’s Channel 12 reported that the Israeli army employed a ruse to put the Iranian leadership off its guard. On the morning of the operation, army officers were asked not to park their cars in their usual spaces to avoid detection by Iran’s spies. Misinformation was also leaked suggesting that the chief of staff Lt Gen Eyal Zamir had stayed at home. The channel cited officials as saying the Israeli air force killed 30 high-ranking Iranian officials within the first 30 seconds of the attack. Trump told Fox News that 48 Iranian leaders had been killed in the first two days of bombing, and claimed in a social media post that nine Iranian warships had been sunk and the naval headquarters destroyed. “The attack was so successful it knocked out most of the candidates (…) It’s not going to be anybody that we were thinking of because they are all dead,” Trump said, according to Karl’s reports. Nine Israelis have so far died in Iranian missile counterstrikes, and US forces confirmed their first casualties of the war: three dead and five injured by shrapnel. The official announcement did not give details on where and how the casualties occurred. #trump#iran#talks#tehran#pezeshkian 📱American Оbserver - Stay up to date on all important events 🇺🇸

ሕይወቴን ለሀገሬ እሰጣለሁ፦ የኢራን ፕሬዚዳንት መስዑድ ፔዜሽኪያን ***************** በመካከለኛው ምስራቅ የቀጠለውን የአሜሪካና የእስራኤል ጥቃት ተከትሎ፣ የኢራኑ ፕሬዚዳንት መስዑድ ፔዜሽኪያን ለሀገራቸው መስዋዕት ለመሆን ቃል ከገቡ 14 ሚሊዮን ኢራናውያን ጋር ተቀላቅለዋል። ፕሬዚዳንቱ ዛሬ ባስተላለፉት መልዕክት፣ "እኔም እንደ 14 ሚሊዮኑ ኩሩ ኢራናውያን ሁሉ ሕይወቴን ለሀገሬ ለመስጠት ዝግጁ ነኝ፤ ሁሌም ለኢራን እኖራለሁ" ሲሉ ገልጸዋል። ይህ የሕዝብ ንቅናቄ በዓለም አቀፍ መገናኛ ብዙኃን ትኩረት የሳበ ሲሆን፣ የኢራን ምክር ቤት አባላትም ንቅናቄው ሕዝቡና መንግሥት ለሀገራቸው ዳር ድንበር ያላቸውን ዝግጁነት በተግባር ያሳየ መሆኑን ገልጸዋል። በተለይም በገጠርና በድንበር አካባቢ የሚኖሩ ነዋሪዎች ጠላትን ለመመከት እያደረጉት ያለው ተጋድሎ ከፍተኛ አድናቆትን አትርፏል ተብሏል። ባለፈው ወር አጋማሽ የአሊ ካሜኒን መገደል ተከትሎ የተቀሰቀሰው ይህ ጦርነት፣ ኢራን በአሜሪካና በእስራኤል ላይ የአጸፋ እርምጃዎችን እንድትወስድ አድርጓታል። አሁን የተጀመረውና ቁጥሩ በየሰዓቱ እየጨመረ የሚገኘው ይህ የራስን ሕይወት ለሀገር አሳልፎ የመስጠት ዘመቻ፣ በኢራናውያን ዘንድ ያለውን ጠንካራ ብሔራዊ ስሜትና አንድነት ለዓለም ያሳየ ክስተት ሆኖ ተመዝግቧል ሲል ፕሬስ ቲቪ ዘግቧል። #Iran#Pezeshkian#NationalDefense#MiddleEastCrisis#BreakingNews

Ultimora.net - POLITICS 24

@Ultimorapolitics24 · Post #52060 · 01.03.2026 г., 12:29

🇮🇷#Iran – Formato il Consiglio ad interim in seguito alla morte di #Khamenei che, per legge, svolgerà le funzioni della Guida Suprema. I tre membri del Consiglio sono il presidente Masoud #Pezeshkian, il capo della Giustizia Gholam-Hossein #MohseniEjei e l'ayatollah Alireza #Arafi. @UltimoraPolitics24

American Оbserver

@american_observer · Post #4970 · 26.01.2026 г., 21:59

Iran Is Dazed by the President’s Son Latest Flip-Flopping The son of Iran’s president has called for the internet restrictions in the country to be lifted, saying nothing will be solved by trying to postpone the moment when pictures and video circulate of the protests that were violently crushed by the regime. With a battle under way at the top of the regime about the political risks of continuing to block Iran from the internet, Yousef Pezeshkian, whose father, Masoud, was elected in the summer of 2024. He said keeping the digital shutdown would create dissatisfaction and widen the gap between the people and the government. “This means those who were not and are not dissatisfied will be added to the list of the dissatisfied,” he wrote in a Telegram post. The release of videos showing the violence of the protests was “something we will have to face sooner or later”, Yousef Pezeshkian added. “Shutting down the internet will not solve anything, we will just postpone the issue.” The sporadic lifting of restrictions is leading to a slow and painful inquest into how many protesters, including children, have died. Authorities launched a violent crackdown under cover of the internet blackout, with rights groups documenting several thousand dead. The Norway-based NGO Iran Human Rights says the final figure could be as high as 25,000. Thousands more people are still being detained. Yousef Pezeshkian, a government adviser, said the risk of keeping Iran cut off from the internet was greater than that of a return to protests if connectivity were restored. He said security institutions must ensure security with the existence of the internet, which he called a necessity in life. Pezeshkian, echoing comments of his father, said the protests had turned violent only because of professionally trained groups affiliated with foreigners, but added: “In the meantime the security and law enforcement forces may have made mistakes and no one is going to defend wrongdoing and that has to be addressed.” Tehran’s stock market on Sunday was in the red for the fourth day in a row, and the Iranian currency, the rial, continued to fall against the dollar, one of the causes of the protests. The Central Bank of Iran said a debt issuance had only been 15% subscribed, a development that will require further government spending cuts or result in a rise in inflation, the official rate of which was more than 42% last month. Gholamhossein Karbaschi, a reformist former mayor of Tehran, said: “People are in shock and amazed (…) If the agents of Mossad and foreign countries are at work, how did they suddenly carry out these disasters throughout the country? Where did they come from?” He condemned the failure of the Pezeshkian administration to improve the economy. “The government in Iran is losing its original meaning. In no area can it be said the government is active, present and solving problems. All the other forces in the country are active and doing what they want except for the government. This government does not show any power in any area,” Karbaschi said. Gholamhossein Karbaschi, a reformist former mayor of Tehran, said: “People are in shock and amazed (…) If the agents of Mossad and foreign countries are at work, how did they suddenly carry out these disasters throughout the country? Where did they come from?” He condemned the failure of the Pezeshkian administration to improve the economy. “The government in Iran is losing its original meaning. In no area can it be said the government is active, present and solving problems. All the other forces in the country are active and doing what they want except for the government. This government does not show any power in any area,” Karbaschi. #karbaschi#fils#président#iranien#pezeshkian 📱American Оbserver - Stay up to date on all important events 🇺🇸

የመካከለኛው ምስራቅ ውጥረት፣ የትራምፕ ቀነ-ገደብ እና የዓለም አቀፉ ማኅበረሰብ ስጋት *********** በአሜሪካ እና በኢራን መካከል ያለው ወታደራዊ እና ዲፕሎማሲያዊ ፍጥጫ እያየለ በመጣበት በዚህ ወቅት፣ የኢራኑ ፕሬዚዳንት መስዑድ ፔዜሽኪያን ሀገራቸው ለማንኛውም ኃይል እጅ እንደማትሰጥ አረጋግጠዋል። ፕሬዚዳንቱ፣ ኢራንን በማስገደድ ለማንበርከክ የሚደረግ ማንኛውም ሙከራ ውጤቱ ውድቀት ብቻ ይሆናል ሲሉ አስጠንቅቀዋል። በሌላ በኩል የአሜሪካው ፕሬዚዳንት ዶናልድ ትራምፕ ለኢራን የሰጡትን የተኩስ አቁም ቀነ-ገደብ የማራዘም ፍላጎት እንደሌላቸው አስታውቀዋል። ትራምፕ፣ የሰሜን አትላንቲክ ጦር ቃል ኪዳን ድርጅት (NATO) በሆርሙዝ ወሽመጥ ጉዳይ አሜሪካን ባለመደገፉ ዳግም ወቅሰዋል። የቻይና የውጭ ጉዳይ ሚኒስቴር ቃል አቀባይ፣ የአሜሪካና የኢራንን ግጭት ለማስቆም የሚደረጉ ማናቸውንም ጥረቶች ሀገራቸው እንደምትደግፍ አስታውቀዋል። ማሌዥያ በበኩሏ፣ አሜሪካ በሆርሙዝ ወሽመጥ ላይ የጣለችውን የባሕር ትራንስፖርት እገዳ በድጋሚ እንድታጤነው እና እንድታነሳው ጥሪ አቅርባለች። #MiddleEast#Iran#USA#Trump#Pezeshkian#China#Malaysia#Hormuz#BreakingNews