24. Program Frameworks
**********************

The modules described in this chapter are frameworks that will largely
dictate the structure of your program.  Currently the modules
described  here are all oriented toward writing command-line
interfaces.

The full list of modules described in this chapter is:

* 24.1. "turtle" --- 海龟绘图

  * 24.1.1. 概述

  * 24.1.2. 可用的 Turtle 和 Screen 方法概览

    * 24.1.2.1. Turtle 方法

    * 24.1.2.2. TurtleScreen/Screen 方法

  * 24.1.3. RawTurtle/Turtle 方法和对应函数

    * 24.1.3.1. 海龟动作

    * 24.1.3.2. 获取海龟的状态

    * 24.1.3.3. 度量单位设置

    * 24.1.3.4. 画笔控制

      * 24.1.3.4.1. 绘图状态

      * 24.1.3.4.2. 颜色控制

      * 24.1.3.4.3. 填充

      * 24.1.3.4.4. 更多绘图控制

    * 24.1.3.5. 海龟状态

      * 24.1.3.5.1. 可见性

      * 24.1.3.5.2. 外观

    * 24.1.3.6. 使用事件

    * 24.1.3.7. 特殊海龟方法

    * 24.1.3.8. 复合形状

  * 24.1.4. TurtleScreen/Screen 方法及对应函数

    * 24.1.4.1. 窗口控制

    * 24.1.4.2. 动画控制

    * 24.1.4.3. 使用屏幕事件

    * 24.1.4.4. 输入方法

    * 24.1.4.5. 设置与特殊方法

    * 24.1.4.6. Screen 专有方法, 而非继承自 TurtleScreen

  * 24.1.5. 公共类

  * 24.1.6. 帮助与配置

    * 24.1.6.1. 如何使用帮助

    * 24.1.6.2. 文档字符串翻译为不同的语言

    * 24.1.6.3. 如何配置 Screen 和 Turtle

  * 24.1.7. "turtledemo" --- 演示脚本集

  * 24.1.8. Python 2.6 之后的变化

  * 24.1.9. Python 3.0 之后的变化

* 24.2. "cmd" --- Support for line-oriented command interpreters

  * 24.2.1. Cmd Objects

  * 24.2.2. Cmd Example

* 24.3. "shlex" --- Simple lexical analysis

  * 24.3.1. shlex Objects

  * 24.3.2. Parsing Rules

  * 24.3.3. Improved Compatibility with Shells
