一图看懂 tkinter.simpledialog + filedialog + messagebox + _tkinter 资料整理+笔记(大全)
- 一、`simpledialog`
- class SimpleDialog:
- class Dialog(Toplevel):
- class _QueryDialog(Dialog):
- class _QueryInteger(_QueryDialog):
- def askinteger(title, prompt, **kw):
- class _QueryFloat(_QueryDialog):
- def askfloat(title, prompt, **kw):
- class _QueryString(_QueryDialog):
- def askstring(title, prompt, **kw):
- 二、`filedialog`
- class FileDialog:
-
- def __init__(self, master, title=None):
- def go(self, dir_or_file=os.curdir, pattern="*", default="", key=None):
- def quit(self, how=None):
- def dirs_double_event(self, event):
- def dirs_select_event(self, event):
- def files_double_event(self, event):
- def files_select_event(self, event):
- def ok_event(self, event):
- def ok_command(self):
- def filter_command(self, event=None):
- def get_filter(self):
- def get_selection(self):
- def cancel_command(self, event=None):
- def set_filter(self, dir, pat):
- def set_selection(self, file):
- class LoadFileDialog(FileDialog):
- class SaveFileDialog(FileDialog):
- class _Dialog(commondialog.Dialog):
- class Open(_Dialog):
- class SaveAs(_Dialog):
- class Directory(commondialog.Dialog):