I've been trying to read up about how tkinter (or more accurately Tk) works on windows AND linux.
Here's what I've understood so far. Tk is a predefined set of widgets. That is stuff like text boxes, check boxes, drop down lists etc. Tkinter is just a way of translating Tk commands into python. (please correct me if I'm wrong).
So how, then, does Tk manage to provide windows which look 'native' for the different operating systems? For example, if I draw a window with a simple button in linux, it will look just like any other button in the operating system. If I do the same thing on windows, it will look just like a normal button in windows. How does Tk provide different looking windows with the same code?
(I've installed python 3.1 on my windows PC and python came 'out of the box' on my ubuntu linux. I just write code in windows and run it on linux.)