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

Резултати

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

Пребарај: #cambodia

当前筛选 #cambodia清除筛选
ASIANOMICS

@asianomics · Post #6026 · 30.04.2026 г., 08:29

🇰🇭Cambodia Court Upholds Kem Sokha's 27-Year Sentence A Cambodian appeals court on Thursday upheld the 27-year treason conviction of former opposition leader Kem Sokha, according to his lawyer. Sokha had led the Cambodia National Rescue Party before its dissolution. The ruling comes amid a sustained crackdown by the ruling party that has effectively dismantled organised political opposition in the country. The CNRP was dissolved by court order in 2017, and multiple senior figures have faced prosecution since. The decision closes off a key legal avenue for Sokha and further consolidates the ruling party's grip on Cambodia's political landscape. #Cambodia @asianomics

Hashtags

ASIANOMICS

@asianomics · Post #5829 · 01.04.2026 г., 15:57

🇰🇭Cambodia Diesel Price Doubles After Middle East War Cambodia's diesel price reached 7,500 riel per litre on April 1, double the 3,750 riel recorded in late February, according to a Commerce Ministry statement. Regular petrol rose over the same period from around 3,750 riel to 5,450 riel per litre. The price movement follows US and Israeli strikes against Iran on February 28, which caused global oil and gas prices to surge. Cambodia relies entirely on imported fuel, and the government caps consumer oil and petrol prices. Farmers in Battambang province, a major rice-producing area, reported that tractor rental costs for ploughing rice fields had nearly doubled, from 80,000 riel to 150,000 riel. Diesel also powers the water pumps used to irrigate paddy fields, with ploughing season set to begin in May. #Cambodia @asianomics

Hashtags

ASIANOMICS

@asianomics · Post #5601 · 12.02.2026 г., 10:20

🇰🇭 Cambodia says it has closed almost 200 scam centers in fraud crackdown Cambodia has closed almost 200 scam centers in a crackdown on transnational fraud in recent weeks, a senior government official said, with authorities providing rare access to one center in a bid to show they are tackling the sophisticated operations targeting people across the globe. “There are about 190 locations that we have sealed off now,” Chhay Sinarith, senior minister and chair of Cambodia's Commission for Combating Online Scams, said in Phnom Penh. Chhay said 173 senior crime figures linked to the centers had been arrested and 11,000 workers deported in a campaign that began late last year after the US indicted and then China extradited a China‑born alleged scam kingpin in the strongest international move so far against the criminal networks. #Cambodia @asianomics

Hashtags

B2B-АSEAN

@b2basean · Post #1765 · 17.02.2025 г., 03:07

Камбоджа и Россия подтвердили свою давнюю дружбу и приверженность более глубокому сотрудничеству, подчеркнув десятилетия дипломатических связей, поддержку Россией послевоенного восстановления Камбоджи и будущее сотрудничество в сфере образования, парламентских обменов и туризма. https://www.khmertimeskh.com/501637416/cambodia-russia-reaffirm-commitment-to-boost-ties/ #Cambodia

Hashtags

RTDocumentary

@rtdocumentary · Post #397 · 10.01.2022 г., 10:01

A hero rat saving lives #video#Cambodia Isaac is a rat that looks like a hamster, whose nose is his secret weapon. But, he is no regular rodent. Isaac is a landmine detecting hero. His remarkable sense of smell can detect the tiniest traces of TNT. He can sense the explosive up to 20 centimetres underground! Isaac was born in Tanzania, where a Belgian NGO, APOPO, trains giant pouched rats to sniff out explosives. The little creatures learn to associate TNT with food - if they detect an explosive, they get a delicious treat. After nine months of training and passing an exam with flying colours, Isaac was sent to Cambodia, one of the most heavily mined countries in the world. The civil war left up to five million pieces of unexploded ordnance. We think land mine-detecting rats deserve a Disney story, but in the meantime, check out our documentary and see for yourself how adorable and clever the pouched rats are! Follow: https://t.me/rtdocumentary

RTDocumentary

@rtdocumentary · Post #385 · 04.01.2022 г., 10:01

Victims of fast fashion #video#Cambodia Meet the women who stitch your clothes. They work round the clock and earn as much as a pair of jeans costs. Like Nike, Gap, or Calvin Klein, many international brands manufacture clothes in countries with cheap labour. In the Cambodian capital, Phnom Penh, there are over 1,000 garment factories where nearly a million workers make T-shirts and jeans. Most employees are women. If they get pregnant, they’re fired. Women go to great lengths to hide their pregnancy so they can keep putting food on the table. Few are aware that laws guarantee them paid maternity leave. Learn more about an unequal struggle between impoverished workers and unscrupulous employers. Follow: https://t.me/rtdocumentary

ASIANOMICS

@asianomics · Post #6037 · 02.05.2026 г., 09:26

🇰🇭🇺🇸Cambodia upholds Kem Sokha's treason conviction A Cambodian appeals court on April 30 confirmed the 27-year sentence of former opposition leader Kem Sokha, co-founder of the now-dissolved Cambodia National Rescue Party. Sokha, 72, has been under house arrest in Phnom Penh since his 2023 conviction on treason charges tied to a speech delivered in Australia in 2013. The US State Department called the ruling "troubled," rejecting claims of American involvement as "patently false." The UN High Commissioner for Human Rights also expressed being "deeply concerned" by the upheld conviction. Sokha's case is the most prominent in a decades-long CPP crackdown on political opposition, which has effectively dismantled organised dissent in Cambodia. Former PM Hun Sen — whose son now leads the government — remains a central political force behind the ruling party's dominance. The ruling forecloses any near-term legal path for Cambodia's opposition and consolidates CPP control ahead of any future electoral cycle. #Cambodia#USA @asianomics

POPULAR FRONT

@popularxfront · Post #4177 · 17.12.2025 г., 21:13

🇰🇭#Cambodia - 🇨🇳#China: Footage shows Cambodian troops reportedly training with Chinese instructors somewhere in mainland China. The second video shows a similar exercise conducted during the "Golden Dragon" joint drills between China and Cambodia. The exercises shown in the second video took place in May, roughly one month before hostilities began in June between Thailand and Cambodia.

ASIANOMICS

@asianomics · Post #5920 · 12.04.2026 г., 10:03

🇰🇭🇹🇭Cambodia Presses Thailand on Border Talks Cambodian Prime Minister Hun Manet on April 11 called on Thailand to resume border negotiations as soon as possible, stating Cambodia is fully prepared to engage. Thailand's Foreign Minister Sihasak Phuangketkeow said the same day that his country was not ready to resume talks despite the formation of a new government. The two countries' 800km shared border has been disputed for decades, rooted in French colonial-era demarcation. Armed clashes in 2025 killed dozens and displaced over one million people across two separate episodes in July and December. A ceasefire signed in late December 2025 included provisions for border talks, but both sides have since accused each other of violating its terms. Cambodia has specifically accused Thai forces of occupying areas in border provinces contrary to the agreement and demanded their withdrawal. #Cambodia#Thailand @asianomics

ASIANOMICS

@asianomics · Post #5773 · 25.03.2026 г., 11:01

🇰🇭🇹🇭Preah Vihear Temple Damaged in Border Fighting Cambodia's Culture Ministry recorded damage at 562 locations across the 11th-century Preah Vihear temple following two rounds of combat in July and December 2025. All five of the temple's gateway pavilions were damaged, three nearly beyond recognition, according to a ministry damage assessment issued in January. The site remains closed to tourism due to unstable walls and the presence of unexploded ordnance. Cambodia's Information Minister accused the Thai military of deliberately targeting the UNESCO World Heritage site, while Thailand's Army spokesperson maintained that Thai forces directed fire only at military targets. Restoration funding from India, China, and the United States has been suspended since the fighting began. The deputy director-general of the National Authority for Preah Vihear stated that urgent stabilization work is being hindered by security conditions along the border, with the rainy season expected to begin in late May. #Cambodia#Thailand @asianomics

ASIANOMICS

@asianomics · Post #5622 · 18.02.2026 г., 11:59

🇰🇭🇹🇭 Cambodian PM says Thailand is occupying territory Cambodian Prime Minister Hun Manet said that Thai forces are occupying Cambodian territory after fighting last year despite a peace accord brokered by U.S. President Donald Trump, and called on Thailand to allow a joint boundary commission to begin working on their disputed border. Cambodia could not accept what he called a "violation of our sovereignty or territorial integrity," he said. He added that Thailand had cited its February 8 election as a reason not to begin demarcation work. Thai Prime Minister Anutin Charnvirakul rode a wave of nationalism in the election in the wake of the border conflict. "Now the election is done, we hope that Thailand can start, at least on a technical level, to start measuring, start demarcating in the hot zone, so that we can go back to life," Hun Manet said. #Cambodia#Thailand @asianomics

ASIANOMICS

@asianomics · Post #5515 · 14.01.2026 г., 11:59

🇹🇭🇰🇭 Cambodia says Thai troops still occupy civilian areas Thailand's military continues to occupy civilian areas in Cambodia, having barricaded some with barbed wire and shipping containers, posing a risk to a truce between the neighbors who clashed twice last year, the Cambodian foreign minister said. Up to 4,000 Cambodian families are unable to return to homes along the disputed frontier because of the Thai incursions, Prak Sokhonn said. "The situation remains calm, but there are some risks as well. So we hope that Thailand will remain committed to the full implementation of the ceasefire." #Thailand#Cambodia @asianomics

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