From 8a77ea249fa34ff97202f82f785af74993579ac7 Mon Sep 17 00:00:00 2001 From: Tyler Perkins Date: Tue, 15 Mar 2022 22:00:01 -0400 Subject: [PATCH] Update for 15-03-22 22:00 --- tech/python-docx.wiki | 108 +++++++++++++++++++++++++++++++++++++++++- 1 file changed, 107 insertions(+), 1 deletion(-) diff --git a/tech/python-docx.wiki b/tech/python-docx.wiki index 6979f7b..6d0fd64 100644 --- a/tech/python-docx.wiki +++ b/tech/python-docx.wiki @@ -1,4 +1,4 @@ -= Python docx = + Python docx = Python docx is a library for generating a .docx file with python code @@ -38,8 +38,114 @@ There are two built in lists, `List Number` and `List Bullet`. `List Number` incremements each time it is added to a paragraph and creats a numbered list. Same applied to `List Bullet`. +=== Tables === + +The following are the styles for tables +{{{ +Normal Table +Table Grid +Light Shading +Light Shading Accent 1 +Light Shading Accent 2 +Light Shading Accent 3 +Light Shading Accent 4 +Light Shading Accent 5 +Light Shading Accent 6 +Light List +Light List Accent 1 +Light List Accent 2 +Light List Accent 3 +Light List Accent 4 +Light List Accent 5 +Light List Accent 6 +Light Grid +Light Grid Accent 1 +Light Grid Accent 2 +Light Grid Accent 3 +Light Grid Accent 4 +Light Grid Accent 5 +Light Grid Accent 6 +Medium Shading 1 +Medium Shading 1 Accent 1 +Medium Shading 1 Accent 2 +Medium Shading 1 Accent 3 +Medium Shading 1 Accent 4 +Medium Shading 1 Accent 5 +Medium Shading 1 Accent 6 +Medium Shading 2 +Medium Shading 2 Accent 1 +Medium Shading 2 Accent 2 +Medium Shading 2 Accent 3 +Medium Shading 2 Accent 4 +Medium Shading 2 Accent 5 +Medium Shading 2 Accent 6 +Medium List 1 +Medium List 1 Accent 1 +Medium List 1 Accent 2 +Medium List 1 Accent 3 +Medium List 1 Accent 4 +Medium List 1 Accent 5 +Medium List 1 Accent 6 +Medium List 2 +Medium List 2 Accent 1 +Medium List 2 Accent 2 +Medium List 2 Accent 3 +Medium List 2 Accent 4 +Medium List 2 Accent 5 +Medium List 2 Accent 6 +Medium Grid 1 +Medium Grid 1 Accent 1 +Medium Grid 1 Accent 2 +Medium Grid 1 Accent 3 +Medium Grid 1 Accent 4 +Medium Grid 1 Accent 5 +Medium Grid 1 Accent 6 +Medium Grid 2 +Medium Grid 2 Accent 1 +Medium Grid 2 Accent 2 +Medium Grid 2 Accent 3 +Medium Grid 2 Accent 4 +Medium Grid 2 Accent 5 +Medium Grid 2 Accent 6 +Medium Grid 3 +Medium Grid 3 Accent 1 +Medium Grid 3 Accent 2 +Medium Grid 3 Accent 3 +Medium Grid 3 Accent 4 +Medium Grid 3 Accent 5 +Medium Grid 3 Accent 6 +Dark List +Dark List Accent 1 +Dark List Accent 2 +Dark List Accent 3 +Dark List Accent 4 +Dark List Accent 5 +Dark List Accent 6 +Colorful Shading +Colorful Shading Accent 1 +Colorful Shading Accent 2 +Colorful Shading Accent 3 +Colorful Shading Accent 4 +Colorful Shading Accent 5 +Colorful Shading Accent 6 +Colorful List +Colorful List Accent 1 +Colorful List Accent 2 +Colorful List Accent 3 +Colorful List Accent 4 +Colorful List Accent 5 +Colorful List Accent 6 +Colorful Grid +Colorful Grid Accent 1 +Colorful Grid Accent 2 +Colorful Grid Accent 3 +Colorful Grid Accent 4 +Colorful Grid Accent 5 +Colorful Grid Accent 6 + }}} == Tables == Tables are added via the `add_table(rows, cols, style)` function of the `Document` class. +