Open Trivia Database for PyQt5 GUI App - PART 2
28 هزار بار بازدید -
3 سال پیش
-
In the previous PyQt5 tutorial
In the previous PyQt5 tutorial we've learned how to create an interface for a Trivia game application - Who Wants to Be a Programmer?
🤩 Watch PART 1 of this project 🤩
https://www.seevid.ir/fa/w/9iZLDnW_vwU
In this video, we will turn the blank interface into a fully functional Trivia game! We will:
1. connect a JSON database to out Python code
2. process the data and extract the questions and answers
3. populate widgets with extracted data
4. track the score
5. practice debugging
6. create other useful functionalities for our app
*************************************************
⭐ CHARECTER FOTMATTING CODE ⭐
*************************************************
🛑 PLEASE note 🛑
Youtube doesn't allow angled brackets (less than or equal to symbols) in video descriptions, therefore you would have to replace it where SYMBOL is indicated the code below
*************************************************
formatting = [
("#039;", "'"),
("&'", "'"),
(""", '"'),
("<", "less than SYMBOL"),
(">", "greater than SYMBOL")
]
for tuple in formatting:
question = question.replace(tuple[0], tuple[1])
correct = correct.replace(tuple[0], tuple[1])
for tuple in formatting:
wrong = [char.replace(tuple[0], tuple[1]) for char in wrong]
*************************************************
⏰ TIME STAMPS ⏰
*************************************************
https://www.seevid.ir/fa/w/r2ZN0mTDnPc - intro
https://www.seevid.ir/fa/w/r2ZN0mTDnPc - download Open Trivia Database
https://www.seevid.ir/fa/w/r2ZN0mTDnPc - starter files walktrough
https://www.seevid.ir/fa/w/r2ZN0mTDnPc - read json from url with Python
https://www.seevid.ir/fa/w/r2ZN0mTDnPc - manipulate and extract data
https://www.seevid.ir/fa/w/r2ZN0mTDnPc - replace widget placeholders with data
https://www.seevid.ir/fa/w/r2ZN0mTDnPc - correct answer evaluation function
https://www.seevid.ir/fa/w/r2ZN0mTDnPc - clear parameters function
https://www.seevid.ir/fa/w/r2ZN0mTDnPc - test the app
https://www.seevid.ir/fa/w/r2ZN0mTDnPc - a riddle
https://www.seevid.ir/fa/w/r2ZN0mTDnPc - thank you for watching!
😍 please let me know which GUI library you want to learn about next! 😍
********************************************
⭐ GITHUB TRIVIA GAME REPOSITORY ⭐
https://github.com/MariyaSha/TriviaGame
********************************************
🛑🐍 INSTALL PYTHON 🐍 🛑
https://www.seevid.ir/fa/w/FZ5baopI_mo
********************************************
🧐 GUI SIMPLIFIED PLAYLIST 🧐
https://www.seevid.ir/fa/w/2RocXKPPx4o
********************************************
📑 PyQt5 Documentation 📑
https://doc.bccnsoft.com/docs/PyQt5/index.html
********************************************
💡 Open Trivia Database 💡
https://opentdb.com/
********************************************
🙋♀️ Connect with me on Social Media 🙋♀️
Github: https://github.com/MariyaSha
LinkedIn: https://www.linkedin.com/in/mariyasha888/
Instagram: https://www.instagram.com/mariyasha888/
Thanks for watching, please share if you found this video helpful! 😊
3 سال پیش
در تاریخ 1400/02/11 منتشر شده
است.
28,010
بـار بازدید شده