Skip to content

Commit

Permalink
Prep for release 3.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcnamara committed Jan 22, 2025
1 parent 6abc6b4 commit 0d63173
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,29 +32,28 @@ Here is a simple example:
import xlsxwriter
# Create an new Excel file and add a worksheet.
workbook = xlsxwriter.Workbook('demo.xlsx')
workbook = xlsxwriter.Workbook("demo.xlsx")
worksheet = workbook.add_worksheet()
# Widen the first column to make the text clearer.
worksheet.set_column('A:A', 20)
worksheet.set_column("A:A", 20)
# Add a bold format to use to highlight cells.
bold = workbook.add_format({'bold': True})
bold = workbook.add_format({"bold": True})
# Write some simple text.
worksheet.write('A1', 'Hello')
worksheet.write("A1", "Hello")
# Text with formatting.
worksheet.write('A2', 'World', bold)
worksheet.write("A2", "World", bold)
# Write some numbers, with row/column notation.
worksheet.write(2, 0, 123)
worksheet.write(3, 0, 123.456)
# Insert an image.
worksheet.insert_image('B5', 'logo.png')
worksheet.insert_image("B5", "logo.png")
workbook.close()
Expand Down

0 comments on commit 0d63173

Please sign in to comment.