I was looking for a way to embed python shell inside tkinter, and had no luck finding.
I have searched this up and saw this answer: https://stackoverflow.com/a/30222807/4934971
Which contains:
#!/usr/bin/python
from Tkinter import *
import os
root = Tk()
termf = Frame(root, width = 400, height = 200)
termf.pack(fill=BOTH, expand=YES)
wid = termf.winfo_id()
os.system('xterm -into %d -geometry 80x20 -sb -e python &' % wid)
root.mainloop()
But running it on windows will only return an error because there's no xterm. Though I would like to know of there is any way this can be done in windows.