I've been trying to get pygame to work in tkinter, but all i get is two separate windows where everyone else says it works: https://stackoverflow.com/a/16550818/12221209
But when I run basic pygame code and all I get is a bouncing spaceship icon on the dock- the same with the aliens demo in terminal. Anybody know how to fix this, because it's driving me insane. All I want is a pygame window inside a tkinter window.
import pygame
import tkinter as tkinter
from tkinter import *
(width, height) = (300, 200)
screen = pygame.display.set_mode((width, height))
pygame.display.flip()
running = True
while running:
for event in pygame.event.get():
if event.type == pygame.QUIT:
running = False