Модуль 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
⚡️TapSwap Community: Major News Incoming Tomorrow!
#TapSwapBeta#SkillGaming#Web3Games
TapSwap Community announces a major update about their private beta launching tomorrow, featuring three exclusive skill-based games in Telegram. Limited spots are available, and interested participants should prepare to apply using a Google form link with their Telegram handle.
Source: link
@tonlines
TapSwap Community: Elevate Your Gaming Skills with Precision
#SkillGaming#TapToWin#ClassicWithCrypto
The TapSwap Community emphasizes skill and precision in classic games like Tetris, Solitaire, and Bubble Shooter. Players are encouraged to hone their focus and ability to outplay and earn, adding purpose to their gaming experience.
Source: link
@tonlines
🎮TapSwap officially launched the beta!
The project has made an important step forward — now skill games are available for the first testers directly in Telegram. Convenient format, fast loading and no unnecessary actions.
What's included in the beta:
• 🎯 Three games where the outcome depends on your skills
• 💰 Integration with $TAPS
• 📲 Access via Telegram mini-app
⚠️ At the current stage, only selected users have access to the beta.
If you are among them, you can already try out the platform before the official release.
🗓The public launch is scheduled for early June.
#TapSwap#БетаЗапуск#SkillGaming#Web3UA
Bot link:tapswap_bot📱
Nigeria Football Hub
🎮TapSwap officially launched the beta!
The project has made an important step forward — now skill games are available for the first testers directly in Telegram. Convenient format, fast loading and no unnecessary actions.
What's included in the beta:
• 🎯 Three games where the outcome depends on your skills
• 💰 Integration with $TAPS
• 📲 Access via Telegram mini-app
⚠️ At the current stage, only selected users have access to the beta.
If you are among them, you can already try out the platform before the official release.
🗓The public launch is scheduled for early June.
#TapSwap#БетаЗапуск#SkillGaming#Web3UA
Bot link:tapswap_bot📱
INSIDER USA 👉🏻 Subscribe