Style for whole MediaWikiTable #43
Answered
by
thombashi
bukowski12
asked this question in
Q&A
-
Hi |
Beta Was this translation helpful? Give feedback.
Answered by
thombashi
Jul 18, 2021
Replies: 1 comment
-
@bukowski12 import pytablewriter as ptw
writer = ptw.MediaWikiTableWriter(
headers=["hoge", "foo"],
value_matrix=[
[1, "abc"],
[2, "xyz"],
],
table_style="display: inline-table;",
)
writer.write_table()
note: This is an experimental feature for now. The interface may change in the future. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
bukowski12
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@bukowski12
Hi,
You can set style via
table_style
attribute ofMediaWikiTableWriter
class sincepytablewriter 0.62.0
:note: This is an experimental feature for now. The interface may change in the future.