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

Резултати

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

Пребарај: #jekyll

当前筛选 #jekyll清除筛选
GitHub Trends

@githubtrending · Post #14918 · 06.07.2025 г., 11:30

#html#documentation#hacktoberfest#hass#hassio#home_assistant#jekyll You can set up and contribute to the Home Assistant website easily by following the developer documentation, which explains how to edit and preview the site locally using simple commands. This helps you see your changes live on your computer before sharing them. There are also tools to speed up website updates by temporarily hiding blog posts you’re not working on, making the process faster. This setup benefits you by making it straightforward to improve the site, test changes quickly, and manage content efficiently without delays. It’s designed to support smooth collaboration and faster website maintenance. https://github.com/home-assistant/home-assistant.io

GitHub Trends

@githubtrending · Post #14762 · 30.05.2025 г., 00:00

#html#bootstrap#devcontainer#html5#jamstack#jekyll#jekyll_theme#pwa#responsive_web_design#rubygems The Chirpy Jekyll theme is a simple and powerful tool for creating websites, especially for technical writing. It offers many features like dark mode, categories, syntax highlighting, and built-in search. This theme helps users create visually appealing sites with ease, making it ideal for sharing knowledge and ideas. It also supports mathematical expressions and diagrams, which is beneficial for technical content. Additionally, it is optimized for SEO and performance, ensuring your site is easily found and runs smoothly. https://github.com/cotes2020/jekyll-theme-chirpy