- Python 2.6 Graphics Cookbook
- Mike Ohlson de Fine
- 208字
- 2021-04-09 22:39:32
In this chapter, we will cover:
- The Shortest Python Program
- Ensure the Python Modules are present
- A Basic Python GUI in Tkinter
- Make a Compiled Executable under Linux
- Make a Compiled Executable under MS Windows
This book is a collection of code recipes for creating and animating graphic objects using the marvelous Python language. In order to create and manipulate graphic objects, Python makes use of the Tkinter module. The prerequisite for using Python and Tkinter is obviously to have both installed. Both are free and Open Source and instructions for obtaining and installing them are abundantly available on the web. Just Google phrases like "install Python" and you will be spoilt for choice.
Our first task is to prove that Python and Tkinter are installed and working on our computer. In this book, we use Python version 2.6. Python 3.0 which came out in 2010 requires some changes in syntax that we won't be using in this book.
Let's look at some simple tests to check if Python is installed. If we download and install Python on Windows, it automatically includes Tkinter as one of the essential modules so we do not need to acquire and install it separately.
- Vue.js前端開發技術
- VMware虛擬化與云計算:vSphere運維卷
- Yii 1.1 Application Development Cookbook
- Learning Ext JS 3.2
- YUI 2.8: Learning the Library
- Windows Phone 7 Silverlight Cookbook
- 音樂日記:Logic Pro X場景x風格編曲實用教程
- 詳解AutoCAD 2022機械設計(第6版)
- CAD/CAM軟件應用技術
- 邊做邊學:平面廣告設計與制作(Photoshop 2020+Illustrator 2020·第3版·微課版)
- AutoCAD 2022中文版建筑設計從入門到精通
- Liferay Portal Systems Development
- 說服力:工作型PPT該這樣做(第2版)
- Building Websites with PHP/Nuke
- AI繪畫+LoRA模型訓練從新手到高手