I have a stripped down piece of code below that first opens an empty tkinter window, and then, once that tkinter window is closed it will open a pyglet window.
How can I force these two windows to open at the same time?
There is a similar question at the link below about opening two tkinter windows at the same time using toplevel() but I do not believe it applies to my problem.
Thanks in advance
import pyglet
from tkinter import *
# Open's a tkinter window
root = Tk()
mainloop()
# Open's a Pyglet Window only after the tkinter window as been closed
class Window(pyglet.window.Window):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
window = Window()
pyglet.app.run()