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

Резултати

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

Пребарај: #living

当前筛选 #living清除筛选
Английский со двора

@angliskysodvora · Post #2755 · 13.06.2024 г., 14:07

Как выбрать район для жизни в Лондоне? Лондон - это, в каком-то плане, уникальный город! Тут нет однозначно неблагоприятных районов. Чтобы не создавать так называемые гетто, социальные (бесплатные) дома для нуждающихся располагаются по всему Лондону. Нет ни одного района без социального жилья. 💜 А я хочу жить в зоне 1 … Лондон также делится на зоны, зона 1 - это центр Лондона. Тарифы в метро различаются, когда вы путешествуете между зонами. Однако не дайте себя обмануть, зоны не совсем определяют престижность, безопасность и благополучие района. Престижность района определяется посткодом и самим названием района. Вопрос «где ты живешь?» вы будете слышать часто. Это считается вежливым и очень уместным. Плюс люди используют такой вопрос как быстрый способ угадать ваш социальный статус. Интересный тред на Quora по этой теме. 💜 А что с безопасностью? Лондон - это небезопасный город вопреки ожиданиям. Тут нередки случаи краж и вооруженных нападений. Существует великолепный сайт со статистикой по районам - Crystal roof. Там можно проверить статистику по посткоду и улице. Также рекомендую просто гуглить статьи про безопасность в вашем потенциальном районе. А если есть возможность, то съездить и посмотреть район самим. 💜 Район с характером Лондон - это город контрастов. У каждого района есть свой неповторимый облик. Что-то больше подходит для молодых семей, что-то - для начинающих карьеристов, что-то - для любителей авокадо тостов и так далее. Очень советую путешествовать и исследовать разные локации. А также - досконально изучать Reddit. Ищите имя интересующего района и читайте отзывы. Только не гуглите «самый лучший район …», потому что каждый пишет свой район. Я иногда просто люблю из любопытства читать такие треды 🥑How would you describe the vibe/culture of the following Boroughs? Лондон делится на север, юг, запад и восток. У каждого свои стереотипы! the West is ‘posh’, the East is ‘poor’, the South is ‘rough’ and the North is ‘intellectual' Я успела пожить практически везде. Мои 5 копеек - есть очень классные места и на юге и на востоке. Особенно сейчас, когда проходит активная гентрификация. Надо смотреть конкретные места. 📎 Нашла интереснейшийтред, где человек описал каждый посткод в Северном Лондоне парой слов 💜 А я хочу жить в самом лучшем районе… где это? Самые дорогие бороу в Лондоне - это Kensington & Chelsea, Westminster и Camden. Самый желанный район в Лондоне, согласно опросам, - это … Hampstead, следом после него идут Chelsea и Islington. Самый безопасный район Лондона - это… Harrow с 62 преступлениями на 1,000 человек. Находится этот район за Wembley, так что не очень близко. Где жить, чтобы можно было легко доехать до популярных рабочих районов? Нашла на Zoopla вот такую карту с опциями для разных бюджетов. Ну и напоследок поделюсь своими любимчиками, если поставите мне китов под этот пост 🐳 #Living

Hashtags

American Оbserver

@american_observer · Post #5367 · 13.03.2026 г., 14:01

Teheran: Living in a Burning City The Heartbreaking Testimony Of An Eyewitness It's 5am on Thursday 12 March. I was finally falling asleep after a day full of fear when the phone rang. Terror rushes through me. It’s not the right time for a call. Someone must need help – or maybe they are alone and frightened. I answer the phone, exhausted. It’s my younger sister. She is crying and cannot speak. My heart breaks into a thousand pieces. I haven’t seen her for many days. When I was released from prison, she had gone to another city to take care of our mother. She returned on her birthday. But then the war began, and we remained separated in two different homes in Tehran. She is much younger than me, yet she took on the responsibility of protecting my son so that I could stay somewhere safe and avoid being arrested again. I remind her how grateful I am. My heart is in turmoil: I thought something terrible had happened at home and that she was unable to say it. I tell her that right now the only thing that matters is staying alive, even if we no longer have a home. Through her sobs she says: “Our neighbour was caught in the blast wave … and he’s gone.” For a moment I picture our neighbour. Like me, he smoked cigarettes. He must have been on the balcony for a smoke. Or maybe, like many others, he had gone out to watch the drones and see which direction they were flying. Maybe he had gone there to cry for a country and a people being destroyed. Maybe he was thinking about where to find gasoline so he could take his two children to a safer city. I wish I were in a desert where I could scream. Where I could cry as loudly as I want. The last time I cried was after the massacre of protesters in January. Why is it that here, unlike everywhere else in the world, we cannot cry like ordinary people? Why have we suffered so much that even new pain no longer shakes us? I can’t sleep any more. I go to the place where I have put a small gas burner – what I call my kitchen. I want coffee, but coffee has become very expensive and I have to save money. Cigarettes are also expensive, but I smoke anyway: one, two, five (…) Ever since the fuel depots were bombed at the weekend, my chest has burned and I can barely breathe. I bought an inhaler that now hangs around my neck. At 6.30am another loud explosion shakes the air. I look out the window. Some supporters of the government have come into the streets in their cars, chanting mourning songs and saying: “People, we are all together, compatriots.” Compatriots? Your foolishness destroyed this homeland. We tried. We struggled so these days would never come. We were imprisoned, tortured, executed. I think about Donald Trump. If he had acted 50 days earlier, 35,000 people might still be alive. Now I am afraid Iran will be destroyed – and yet the Islamic republic will remain. I am preparing to send a few packets of lentils and a small amount of money to a woman whose husband is in prison and who has a small child. It is the last banknote we have. There is no cash anywhere. I don’t know if one day we will ever have enough money to rebuild this devastation. It is now 8am. The streets are crowded again. People are going about their business. I see several tired and hopeless men, day labourers who still come here every day. But there is no work. Life continues in Tehran. But it is dark and bitter. #iran#tehran#living#war 📱American Оbserver - Stay up to date on all important events 🇺🇸

探索号

@seeker_rc · Post #19600 · 04.05.2026 г., 16:25

💡 国内美食探店团 谁懂 这家黄鳝饭真的太太好吃了 又来吃了 啫竹肠也好好吃 不起眼的店但是和我姐都吃光盘了 还会再来的 吃完去了客厅living 听了下粤语歌 我发现我真的是对喝酒清吧一点兴趣没有 这种店我每次去都会觉得很无聊┏( .-. ┏ ) ┓ 但是因为我姐要去广州南晚上回深圳 就坐店里等了下听了下歌再送她走 via 国内美食探店团 标签: #探店#living#粤语歌 ⚡️探索号频道 ⚡️探索者频道 ⚡️探索者交流群 ⚡️ Youtube 频道:科技探索者 每天推荐有趣内容,欢迎订阅、转发。