Set window size for xlsxwriter

hzl*_*rdo 4 python macos excel window xlsxwriter

I cannot set the window size for created excel file with xlsxwriter and it always creates small window on OSX. Is there a way to set window size on xlsxwriter?

jmc*_*ara 5

XlsxWriter 中没有可以执行此操作的 API(如果您愿意,可以打开功能请求)。

同时,您可以更改工作簿对象中的这些属性,如下所示,内置默认值:

    workbook.window_width = 16095
    workbook.window_height = 9660
Run Code Online (Sandbox Code Playgroud)

我不确定单位是什么,但可能是twips

更新:我为此添加了一个工作簿set_size()方法。