Adding more Python libraries

Finding a Python package or module can be as easy as entering the functionality you're looking for, like mp3 tags and Python into a search engine, and then sorting through the results. If you're lucky, you may find the module you need packaged for your OS with an executable Windows or Mac OS X installer or a package for your Linux distribution. This is one of the easiest ways to add a library to your Python installation, because the installer or your package manager takes care of all the...

Scoping rules and namespaces for class instances

Now you have all the pieces to put together a picture of the scoping rules and namespaces for a class instance. When you're in a method of a class, you have direct access to the local namespace (parameters and variables declared in the method), the global namespace (functions and variables declared at the module level), and the built-in namespace (built-in functions and built-in exceptions). These three namespaces are searched in the following order local, global, and built in (see figure...

Alternatives to Tkinter

It isn't particularly fast and isn't a good candidate for games or for image-manipulation programs. Its high-level approach means that particularly unusual or specialized user interfaces may be difficult to implement. Or, you may not have the time to learn Tkinter. Fortunately, alternatives are available. Three cross-platform windowing GUI libraries stand out, being available for at least Windows, Mac OS X, and Linux UNIX. The first is the Qt package, which...