This section illustrates a simple example of creating a TkInter GUI. In the first seven lines, we import the two modules we'll need to create our interface. This import method, while complex, allows us to import these two modules in a Python 2- or Python 3-specific way.
The first module imports all of the default objects needed for the TkInter GUI design. The ttk module imports the themed TkInter pack, which applies additional formatting to the interface depending on the host operating system and is a simple way to improve the overall look of our interface. In the last line, we create our root window.
When typed into a Python interpreter, the execution of the last line should display a blank 200 pixel × 200 pixel ...