I'm creating a small app that just gets jokes from an API using ttkbootstrap. The problem is there are 2 windows showing when I run the app. Anyone know what I'm doing wrong?
Here's the code:
import requests
import ttkbootstrap as tb
from ttkbootstrap.constants import *
def get_joke():
url =
…
Top comments (1)
solution is to explicitly create your "Window" first and then set that as the parent of your "Label" and "Button" widgets.
Something like this, but you need to test it out.