I'm trying to understand how some built-in Python modules work under the hood.
For example, with the code:
from Tkinter import *
root = Tk()
root.mainloop()
Where is the definition of the function Tk
?
I've been searching through the tkinter source code but cannot find it.
The code several time calls import Tkinter
which is also strange because this is Tkinter
, so why is it importing itself?
Hope someone can help resolve my confusion