Last active
December 23, 2020 18:20
-
-
Save mrshu/cc3befe1c40b740cfbc0f84951548140 to your computer and use it in GitHub Desktop.
An example of using the `write_rich_string` function
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
import xlsxwriter | |
workbook = xlsxwriter.Workbook('rich_strings.xlsx') | |
bold = workbook.add_format({'bold': True}) | |
italic = workbook.add_format({'italic': True}) | |
worksheet.write_rich_string('A1', | |
'This is ', | |
bold, 'bold', | |
' and this is ', | |
italic, 'italic') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment