一个Python包,它打印用户可以选择的指定文件夹中的所有文件。
fileselector的Python项目详细描述
天气预报员
一个Python包,用于显示选定路径中的所有文件, 允许用户选择他们想要的任何文件。在
使用
#Imports FileSelector as fs.
import FileSelector as fs.
#path < folder you want to list.
#a,b < opening and closing characters, eg <1>,(1),[1]
#txt < Future versions will include keyboard controls, Txt/keyboard.
fs.PrintLocation(path, "a", "b", "txt")
#text < This will alter the visible text before Input()
#color < changes highlights colors, Pick from Colorama's Library of colors.
#true/false < True Adds a confirmation screen for the selected file.
fs.txt('text','color','true/false')
#returns the filepath selected by the user.
fs.filepath
- 项目
标签: