# docx-formater **Repository Path**: dongmingchao/docx-formater ## Basic Information - **Project Name**: docx-formater - **Description**: 基于python tkinter,将docx文件快速按照设定模板格式化 - **Primary Language**: Python - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2018-10-18 - **Last Updated**: 2021-11-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 桌面程序--docx文件格式修改器 把docx的文章不同的部分按照所需要的格式重新生成一份 ## 如何安装 - For Users just download releases/~.zip - For dev ```bash pip install git+https://github.com/dongmingchao/python-docx.git python3 __init__.py ``` ## 使用方法 1. 写一份docx,把需要套用格式的部分,使用docx的默认样式,确认是属于哪一部分(例如:写一部分文字,点击上方的样式-正文) 2. 打开程序,选择文章部分对应什么样的格式需求 3. 导入文件 4. 生成文件 ## 所有任务 1. 学习Tkinter 1. 熟悉组件 2. 熟悉属性 3. 熟悉运作逻辑 2. 学习`python-docx` ## 任务环节 1. 设计界面,接受用户的格式需求 2. 通过`python-docx` ,从docx文件中获取需要的信息,保存为python类对象 3. 根据获取的用户格式需求,提取python类对象中的对应区域内容,输出一个包含内容及其对应格式需求的类对象 4. 通过`python-docx` ,从上个环节的类对象生成docx