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

Резултати

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

Пребарај: #countries

当前筛选 #countries清除筛选
Everything Science

@everything_science · Post #3501 · 10.06.2025 г., 07:15

If you have $10 in your wallet and no debt, you have more wealth than 25% of Americans. Not because you’re rich… but because debt has so many people buried. A reminder that sometimes, financial peace isn’t about how much you have— It’s about how little you owe. 💡 Stay grounded. Stay grateful ❤️ #Countries 🔔@Everything_Science

Hashtags

Everything Science

@everything_science · Post #3498 · 08.06.2025 г., 15:35

One of China's richest men, Jack Ma, bought 28,000 acres of U.S. wilderness and turned it into a wildlife sanctuary. #Countries 🔔@Everything_Science

Hashtags

Everything Science

@everything_science · Post #3323 · 07.03.2025 г., 19:24

Chinese government takes its officials and members of their families on prison tours on a regular basis to give officials an introduction to what awaits them if they should engage in corruption. The tours include meet-and-greets with former government officials who were caught for corruption. #Countries 🔔@Everything_Science

Hashtags

Everything Science

@everything_science · Post #3292 · 19.02.2025 г., 08:24

In Finland, the official World Wife-Carrying Championships have been held since 1992. In this competition, men carry their wives as fast as possible through a long obstacle course. In the end, the winner gets a beer for his wife's weight. #Countries 🔔@Everything_Science

Hashtags

Amazing Geography 🌍

@amazingeo · Post #47 · 14.08.2025 г., 13:12

🌍 Monaco is the most densely populated country on Earth, with over 25,000 people per square kilometer. This tiny city-state squeezes more residents into each square mile than anywhere else. ✨ #population⚡#density⚡#Monaco⚡#countries⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography🌍

🇿🇦🌍South Africa is the 25th largest country in the world. It borders Namibia, Botswana, Zimbabwe, Mozambique, Eswatini (formerly Swaziland), and Lesotho. 🌊 On the west, South Africa is washed by the Atlantic Ocean, while to the south and southeast it is bordered by the Indian Ocean. 📏 Its area is about 1.21 million sq. km — roughly twice the size of France or three times the size of Germany. 🏞 The country consists of nine provinces. #Geography#SouthAfrica#Africa#Countries#Facts#DidYouKnow

Lesson 20 of my Uzbek self-study course with audio is here! Learn how to say countries, nationalities and languages in Uzbek. The lesson includes exercises, tables, a crossword puzzle and clear grammar explanations. https://yep.uz/en/2025/09/lesson-20-countries-nationalities-languages-uzbek/ #uzbeklanguage#learnuzbek#uzbeklesson#languages#nationalities#countries#selfstudy#languagelearning