2 Star 3 Fork 0

hamfreebird/freebird-music-player

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
dialog_box.py 805 Bytes
一键复制 编辑 原始数据 按行查看 历史
hamfreebird 提交于 2024-01-01 15:42 . v1.3.0 文件读取与图标更新
import tkinter.messagebox
import tkinter.filedialog
import tkinter.simpledialog
def ask_msg(msg: str):
return tkinter.messagebox.askyesno(title = "freebird", message = msg)
def ask_more_msg(msg: str):
return tkinter.messagebox.askyesnocancel(title = "freebird", message = msg)
def waring_msg(msg: str):
return tkinter.messagebox.showwarning(title = "warning", message = msg)
def error_msg(msg: str):
return tkinter.messagebox.showerror(title = "error", message = msg)
def info_msg(msg: str):
return tkinter.messagebox.showinfo(title = "freebird", message = msg)
def get_msg(msg: str):
return tkinter.simpledialog.askstring(title = "freebird", prompt = msg)
def film_msg():
return tkinter.filedialog.askopenfilenames()
def save_msg():
return tkinter.filedialog.asksaveasfile(mode='w')
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/hamfreebird/freebird-music-player.git
[email protected]:hamfreebird/freebird-music-player.git
hamfreebird
freebird-music-player
freebird-music-player
main

搜索帮助