mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
28 lines
970 B
Python
28 lines
970 B
Python
from tkinter import Event, Misc, Toplevel
|
|
from typing import Any
|
|
|
|
class Dialog(Toplevel):
|
|
def __init__(self, parent: Misc | None, title: str | None = ...) -> None: ...
|
|
def body(self, master) -> None: ...
|
|
def buttonbox(self) -> None: ...
|
|
|
|
class SimpleDialog:
|
|
def __init__(
|
|
self,
|
|
master: Misc | None,
|
|
text: str = ...,
|
|
buttons: list[str] = ...,
|
|
default: int | None = ...,
|
|
cancel: int | None = ...,
|
|
title: str | None = ...,
|
|
class_: str | None = ...,
|
|
) -> None: ...
|
|
def go(self) -> int | None: ...
|
|
def return_event(self, event: Event[Misc]) -> None: ...
|
|
def wm_delete_window(self) -> None: ...
|
|
def done(self, num: int) -> None: ...
|
|
|
|
def askfloat(title: str | None, prompt: str, **kwargs: Any) -> float | None: ...
|
|
def askinteger(title: str | None, prompt: str, **kwargs: Any) -> int | None: ...
|
|
def askstring(title: str | None, prompt: str, **kwargs: Any) -> str | None: ...
|