1 Star 0 Fork 0

Rik-Don/WindowsFocusWallpaperGetter

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Enumerations.py 992 Bytes
一键复制 编辑 原始数据 按行查看 历史
from enum import Enum
# SettingsAnalyser
class ResetMessage(Enum):
"""
ResetMessage:设置更新结果枚举类
"""
success = 0 # 重置成功
locationNotExist = 1 # 路径不存在
fileNotFound = 2 # settings文件找不到
class StorageMethod(Enum):
"""
StorageMethod:存储方式枚举类
"""
textFile = 0
database = 1
unknown = 2
# ImageAnalyser
class ImageLayout(Enum):
"""
ImageLayout:图片版式枚举类
"""
horizontal = 0 # 横版图片
vertical = 1 # 竖版图片
unknown = 2 # 未知版式
invalidFile = 3 # 非图片文件
class ImageFormat(Enum):
"""
ImageFormat:图片格式枚举类
"""
jpg = 0 # jpg/jpeg格式
png = 1
gif = 2
bmp = 3
other = 4
# Controller
class ExecuteMessage(Enum):
success = "执行成功"
failure = "执行失败"
class SearchMode(Enum):
idAndNum = 0
oldFilename = 1
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/rikdon/WindowsFocusWallpaperGetter.git
git@gitee.com:rikdon/WindowsFocusWallpaperGetter.git
rikdon
WindowsFocusWallpaperGetter
WindowsFocusWallpaperGetter
master

搜索帮助