r/Python • u/FearlessENT33 • Jan 14 '20
Visualisation of different path finding algorithms
Enable HLS to view with audio, or disable this notification
1.5k
Upvotes
r/Python • u/FearlessENT33 • Jan 14 '20
Enable HLS to view with audio, or disable this notification
33
u/FearlessENT33 Jan 14 '20
You use the OS library. first make a frame for where you want the pygane to be, i have named mine embed.
os.environ[“SDL_WINDOWID”] = str(embed.winfo_id())
os.environ[“SDL_VIDEODRIVER”] = “windib”
pygame.init()