TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #176 · 2 ное.

Модуль Qt․py это не просто текстовый модуль, его компоненты генерируются на лету в зависимости от ситуации. Поэтому ваша любимая IDE не сможет качественно сообразить автокомплиты под этот модуль. Решение здесь более чем очевидно, надо сделать stubs-файлы. Это файлы с расширением .pyi, описывающие содержимое модуля но не имеющие рабочего кода. Ну что, готовы потратить пару месяцев своей жизни чтобы описать все классы Qt и их методы? 😭 Расслабьтесь, за вас это уже сделали добрые люди. Спасибо Fredrik Averpil ! Качаем здесь ⬇️ https://github.com/fredrikaverpil/Qt.py/tree/stubs/stubs/Qt Не думаю что стоит устанавливать Qt․py из этого репозитория. Он там не обновляется. Так что забираем только файлы .pyi. За актуальность этих файлов тоже не ручаюсь, но большинство методов там имеются. Установка: 🔸 Вариант 1: - находим куда установлен сам модуль Qt․py, это будет одинокий файл который так и называется Qt․py - кидаем директорию рядом с ним (если есть доступ на запись). Должно получиться так: 📁 site-packages\ 📄 Qt.py 📁 Qt\ ... 🔸 Вариант 2 - копируем директорию Qt куда угодно - пробиваем путь к ней в настройках энвайронмента в переменную PATH так, чтобы путь был ДО директории Qt. Закинуть можно и в свою домашнюю директорию. Если скопируете сюда: ~/stubs/Qt То переменную пишем так export PATH=~/stubs:${PATH} После этого IDE должна распарсить stubs-файлы и автокомплиты появятся 😎 #qt#libs#tricks

Резултати

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

Пребарај: #demining

当前筛选 #demining清除筛选
American Оbserver

@american_observer · Post #5556 · 03.04.2026 г., 23:59

Ukraine’s Minefields Also Feed the Crooks Ukraine is the most mined country in the world, which makes humanitarian demining essential — and, as this case shows, dangerously easy to turn into a cash machine. Prosecutors say suspects in Kherson allegedly created fake danger by digging up soil and planting shell-like objects on already safe land, then billed the state for the theater. That is the ugliest part of war economies: when real suffering creates a budget line, somebody always tries to monetize the illusion of danger. In Kherson alone, officials say the damage may be 6.3 million hryvnias, with prosecutors checking similar cases in Mykolaiv and Chernihiv. The scale matters because the problem is real. UN agencies and humanitarian groups have warned that Ukraine remains the world’s most heavily mined country, with around 139,000 square kilometers contaminated or potentially contaminated by mines and unexploded ordnance. So this is not a story about one rotten crew only. It is a warning that a huge national necessity, under wartime pressure, creates a perfect habitat for fraud — unless oversight is brutal enough to catch it before the crooks start billing the country for their own dirt piles. #Ukraine#corruption#demining#Kherson#war 📱American Оbserver - Stay up to date on all important events 🇺🇸