Модуль 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
#Musical chair
Activity for review vocabulary
Class 7️⃣"Active"
Students learned vocabulary Time⏰
On each chair stuck the words from the topic time
When music🎶 plays students walking around the chairs and dance 🕺💃
When music pauses they should sit and say the word with its meaning
The challenge is that students' numbers are more than chairs. And also if students can not say the meaning they can not participate in the activity anymore
Aim of the activity
Review vocabulary
Enhance vocabulary ⬆️
Motivate students to learn foreign language
Relaxation 😂
Work on concentration🤔
Energizer😉
Learning should be
Easy and Enjoyable 😎👍
Teacher Umida Pulatova
Kushtepa district Specialized School
Fergana Region
https://t.me/LanguageStuff
🎬 Whiplash: Em Busca da Perfeição (2014)
Gênero: #Drama, #Musical
⭐️ IMDb: 8.5
⏳ Duração: 1 h 46 min
📝 Sinopse:
Um jovem e promissor baterista se matricula em um conservatório de música onde seus sonhos são guiados por um instrutor que não pára por nada para perceber o potencial de um aluno.
Fonte: IMDb
🔵Inscreva-se em @Assistir
*Patrocinado: Anime Bot
📺- CHICA VAMPIRO -📺
Título original: Chica Vampiro
Género:#Fantasía#Musical
Temporadas: 1
Año: 2013 📼
Origen: Colombia 🇨🇴
Tráiler:youtu.be/tlNRg_fYFU4
Sinopsis:
Daisy O'Brian es una chica normal que sueña con una carrera como cantante en comedia musical. Sus padres son vampiros y, según la tradición familiar, debe decidir convertirse en vampiro o no en su cumpleaños número 16. Ese día, Daisy decide seguir siendo humana para vivir junto a su amor, Max, que es su vecino y compañero de clase.
Disponible:Netflix | Vix | HBO Max
@SeriesClubHD
🍿 Lady Gaga and Joaquin Phoenix unleash chaos in 'Joker: Folie à Deux'
📆Premiere: October 4, 2024
🎭Genre: #Drama · #Musical
🎬 The first trailer for 'Joker: Folie à Deux' is here! Joaquin Phoenix returns as Arthur Fleck, joined by Lady Gaga as Harley Quinn. This dynamic duo promises chaos and music in a sequel that takes place mostly in Arkham Asylum. 🌆🃏
The first film was a massive hit, winning the Golden Lion and multiple Oscars, including Best Actor for Phoenix. This time, in addition to the usual madness, we'll see unique musical elements that will surprise everyone. Don't miss it! 🎤💥