mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 12:44:28 +08:00
adding a stub for tkinter.messagebox (#2113)
This commit is contained in:
committed by
Jelle Zijlstra
parent
56a31be7a7
commit
4e1cc807aa
31
stdlib/3/tkinter/messagebox.pyi
Normal file
31
stdlib/3/tkinter/messagebox.pyi
Normal file
@@ -0,0 +1,31 @@
|
||||
from tkinter.commondialog import Dialog
|
||||
from typing import Any, Optional
|
||||
|
||||
ERROR: str
|
||||
INFO: str
|
||||
QUESTION: str
|
||||
WARNING: str
|
||||
ABORTRETRYIGNORE: str
|
||||
OK: str
|
||||
OKCANCEL: str
|
||||
RETRYCANCEL: str
|
||||
YESNO: str
|
||||
YESNOCANCEL: str
|
||||
ABORT: str
|
||||
RETRY: str
|
||||
IGNORE: str
|
||||
CANCEL: str
|
||||
YES: str
|
||||
NO: str
|
||||
|
||||
class Message(Dialog):
|
||||
command: str = ...
|
||||
|
||||
def showinfo(title: Optional[str] = ..., message: Optional[str] = ..., **options: Any) -> str: ...
|
||||
def showwarning(title: Optional[str] = ..., message: Optional[str] = ..., **options: Any) -> str: ...
|
||||
def showerror(title: Optional[str] = ..., message: Optional[str] = ..., **options: Any) -> str: ...
|
||||
def askquestion(title: Optional[str] = ..., message: Optional[str] = ..., **options: Any) -> str: ...
|
||||
def askokcancel(title: Optional[str] = ..., message: Optional[str] = ..., **options: Any) -> bool: ...
|
||||
def askyesno(title: Optional[str] = ..., message: Optional[str] = ..., **options: Any) -> bool: ...
|
||||
def askyesnocancel(title: Optional[str] = ..., message: Optional[str] = ..., **options: Any) -> Optional[bool]: ...
|
||||
def askretrycancel(title: Optional[str] = ..., message: Optional[str] = ..., **options: Any) -> bool: ...
|
||||
Reference in New Issue
Block a user