June 2018
Beginner
508 pages
13h 8m
English
Imports are like in the script version, except we've lost argparse, which is no longer needed, and we have added two lines:
# guiscrape.pyfrom tkinter import * from tkinter import ttk, filedialog, messagebox ...
The first line is quite common practice when dealing with tkinter, although in general it is bad practice to import using the * syntax. You can incur in name collisions and, if the module is too big, importing everything would be expensive.
After that, we import ttk, filedialog, and messagebox explicitly, following the conventional approach used with this library. ttk is the new set of styled widgets. They behave basically like the old ones, but are capable of drawing themselves correctly according to the style your OS ...
Read now
Unlock full access