Skip to Content
Modern Python Standard Library Cookbook
book

Modern Python Standard Library Cookbook

by Alessandro Molina
August 2018
Intermediate to advanced
366 pages
10h 14m
English
Packt Publishing
Content preview from Modern Python Standard Library Cookbook

Introduction

Python comes with a feature that is rarely shipped with a programming language: a built-in graphical user interface (GUI) library.

Python ships with a working version of the Tk widgets toolkit, which can be controlled through the tkinter module provided by the standard library.

The Tk toolkit actually is used through a simple language called Tcl. All Tk widgets can be controlled through the Tcl commands.

Most of these commands are very simple, and take the following form:

classname widgetid options

For example, something such as the following would lead to a button (identified as mybutton) with a red "click here" text:

button .mybutton -fg red  -text "click here"

As those commands are usually relatively simple, Python ships with ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Advanced Python Development: Using Powerful Language Features in Real-World Applications

Advanced Python Development: Using Powerful Language Features in Real-World Applications

Matthew Wilkes

Publisher Resources

ISBN: 9781788830829Supplemental Content