← 返回首页
feat(table): add Table.width property by alexinnex · Pull Request #1529 · python-openxml/python-docx · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus

feat(table): add Table.width property#1529

Open
alexinnex wants to merge 1 commit into
python-openxml:masterfrom
alexinnex:preferred-width-tables
Open

feat(table): add Table.width property#1529
alexinnex wants to merge 1 commit into
python-openxml:masterfrom
alexinnex:preferred-width-tables

Conversation

Copy link
Copy Markdown

alexinnex commented Nov 10, 2025
edited
Loading

Add support for setting table preferred width via Table.width property. This allows programmatic control of the "Preferred width" checkbox in Word's Table Properties dialog, enabling true fixed-width behavior.

  • Add Table.width property (read/write)
  • Add CT_TblPr.width property
  • Register w:tblW element
  • Add unit tests and BDD scenarios
  • Add documentation to table-props.rst

Implements #1305

I manually tested that this feature does indeed work.

Add support for setting table preferred width via Table.width property. This allows programmatic control of the "Preferred width" checkbox in Word's Table Properties dialog, enabling true fixed-width behavior. - Add Table.width property (read/write) - Add CT_TblPr.width property - Register w:tblW element - Add unit tests and BDD scenarios - Add documentation to table-props.rst Implements python-openxml#1305
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Footer

© 2026 GitHub, Inc.