xlwt を使用してシート レイアウト (右から左) を設定するにはどうすればよいですか?
Excel シートの作成に xlwt を使用していますが、データが右から左に表示され、シート レイアウトを右から左に設定したい (Microsoft Excel の [ページ レイアウト] タブと同じ)
import xlwt
wb = xlwt.Workbook()
for shx in 0, 1:
ws = wb.add_sheet("S%d" % shx)
# Excel 2003: Tools > Options > International > View current sheet right-to-left
# Excel 2007: Page Layout > Sheet Right-to-Left
ws.cols_right_to_left = shx
ws.write(0, 0, "qwerty")
wb.save("colsR2L.xls")