CSSG-Labs / CSSG-Labs/PyNote

filedialog file vs filename

未關閉
#21 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
question
主要語言
Python
星號
3
分支
4
PR 合併指標
30 天內沒有已合併 PR

描述

So far we have been using the `tkinter.filedialog.askopenfilename` and `tkinter.filedialog.asksaveasfilename` functions to obtain the location of the files to be opened and saved. Should we instead use the `tkinter.filedialog.askopenfile(mode='r', **options)` and `tkinter.filedialog.asksaveasfile(mode='w', **options)` to return the file objects instead? Would this allow us to reduce the amount of code in that we would separately not have to open the files?

貢獻指南

開啟貢獻指南

研究方向

Start by inspecting the current uses of tkinter.filedialog.askopenfilename and asksaveasfilename, then compare them with askopenfile(mode='r', **options) and asksaveasfile(mode='w', **options). Determine whether returning file objects can remove separate file-opening code without changing the editor's open and save behavior; the issue is done when that approach and its scope are resolved.

由索引模型根據 Issue 內容生成。

評估

技術堆疊
python
領域
desktop
Issue 類型
重構
難度
5/5
預估耗時
一週以上
活躍度
停滯
描述清晰度
需要釐清
新手友好度
20/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。