Connect JSON Database to PyQT5 GUI App

Connect JSON Database to PyQT5 GUI App

Connect JSON Database to PyQT5 GUI App. In the previous PyQt5 tutorial we've learned how to create an interface for a Trivia game application - 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

In the previous PyQt5 tutorial we've learned how to create an interface for a Trivia game application - Who Wants to Be a Programmer?

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
    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]
  • 00:00 - intro
  • 00:47 - download Open Trivia Database
  • 02:02 - starter files walktrough
  • 03:25 - read json from url with Python
  • 04:43 - manipulate and extract data
  • 10:24 - replace widget placeholders with data
  • 13:14 - correct answer evaluation function
  • 27:55 - clear parameters function
  • 29:49 - test the app
  • 31:09 - a riddle
  • 31:41 - thank you for watching!

json database python

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

top 30 Python Tips and Tricks for Beginners

In this post, we'll learn top 30 Python Tips and Tricks for Beginners

Lambda, Map, Filter functions in python

You can learn how to use Lambda,Map,Filter function in python with Advance code examples. Please read this article

JSON with Python - copyassignment.com

Before we get started with how to use JSON with Python, we’ll take a look at “What is JSON?”.The JSON stands for JavaScript Object Notation.

Python Database Connection - How to Connect Python with MySQL Database

This video on 'Python Database Connection', you will learn how to establish a connection between Python and MySQL DB and perform CRUD operations on it.

Python Tricks Every Developer Should Know

In this tutorial, you’re going to learn a variety of Python tricks that you can use to write your Python code in a more readable and efficient way like a pro.