mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 21:14:48 +08:00
Stdlib: add container default values (#9909)
This commit is contained in:
@@ -504,7 +504,7 @@ class Misc:
|
||||
def grid_columnconfigure(
|
||||
self,
|
||||
index: _GridIndex,
|
||||
cnf: _GridIndexInfo = ...,
|
||||
cnf: _GridIndexInfo = {},
|
||||
*,
|
||||
minsize: _ScreenUnits = ...,
|
||||
pad: _ScreenUnits = ...,
|
||||
@@ -514,7 +514,7 @@ class Misc:
|
||||
def grid_rowconfigure(
|
||||
self,
|
||||
index: _GridIndex,
|
||||
cnf: _GridIndexInfo = ...,
|
||||
cnf: _GridIndexInfo = {},
|
||||
*,
|
||||
minsize: _ScreenUnits = ...,
|
||||
pad: _ScreenUnits = ...,
|
||||
@@ -825,7 +825,7 @@ class Pack:
|
||||
# replaced by **kwargs.
|
||||
def pack_configure(
|
||||
self,
|
||||
cnf: Mapping[str, Any] | None = ...,
|
||||
cnf: Mapping[str, Any] | None = {},
|
||||
*,
|
||||
after: Misc = ...,
|
||||
anchor: _Anchor = ...,
|
||||
@@ -861,7 +861,7 @@ class _PlaceInfo(_InMiscNonTotal): # empty dict if widget hasn't been placed
|
||||
class Place:
|
||||
def place_configure(
|
||||
self,
|
||||
cnf: Mapping[str, Any] | None = ...,
|
||||
cnf: Mapping[str, Any] | None = {},
|
||||
*,
|
||||
anchor: _Anchor = ...,
|
||||
bordermode: Literal["inside", "outside", "ignore"] = ...,
|
||||
@@ -896,7 +896,7 @@ class _GridInfo(_InMiscNonTotal): # empty dict if widget hasn't been gridded
|
||||
class Grid:
|
||||
def grid_configure(
|
||||
self,
|
||||
cnf: Mapping[str, Any] | None = ...,
|
||||
cnf: Mapping[str, Any] | None = {},
|
||||
*,
|
||||
column: int = ...,
|
||||
columnspan: int = ...,
|
||||
@@ -920,7 +920,7 @@ class Grid:
|
||||
class BaseWidget(Misc):
|
||||
master: Misc
|
||||
widgetName: Incomplete
|
||||
def __init__(self, master, widgetName, cnf=..., kw=..., extra=...) -> None: ...
|
||||
def __init__(self, master, widgetName, cnf={}, kw={}, extra=()) -> None: ...
|
||||
def destroy(self) -> None: ...
|
||||
|
||||
# This class represents any widget except Toplevel or Tk.
|
||||
@@ -947,7 +947,7 @@ class Toplevel(BaseWidget, Wm):
|
||||
def __init__(
|
||||
self,
|
||||
master: Misc | None = None,
|
||||
cnf: dict[str, Any] | None = ...,
|
||||
cnf: dict[str, Any] | None = {},
|
||||
*,
|
||||
background: _Color = ...,
|
||||
bd: _ScreenUnits = ...,
|
||||
@@ -1003,7 +1003,7 @@ class Button(Widget):
|
||||
def __init__(
|
||||
self,
|
||||
master: Misc | None = None,
|
||||
cnf: dict[str, Any] | None = ...,
|
||||
cnf: dict[str, Any] | None = {},
|
||||
*,
|
||||
activebackground: _Color = ...,
|
||||
activeforeground: _Color = ...,
|
||||
@@ -1100,7 +1100,7 @@ class Canvas(Widget, XView, YView):
|
||||
def __init__(
|
||||
self,
|
||||
master: Misc | None = None,
|
||||
cnf: dict[str, Any] | None = ...,
|
||||
cnf: dict[str, Any] | None = {},
|
||||
*,
|
||||
background: _Color = ...,
|
||||
bd: _ScreenUnits = ...,
|
||||
@@ -1721,7 +1721,7 @@ class Canvas(Widget, XView, YView):
|
||||
if sys.version_info >= (3, 8):
|
||||
def moveto(self, tagOrId: str | _CanvasItemId, x: Literal[""] | float = "", y: Literal[""] | float = "") -> None: ...
|
||||
|
||||
def postscript(self, cnf=..., **kw): ...
|
||||
def postscript(self, cnf={}, **kw): ...
|
||||
# tkinter does:
|
||||
# lower = tag_lower
|
||||
# lift = tkraise = tag_raise
|
||||
@@ -1746,7 +1746,7 @@ class Checkbutton(Widget):
|
||||
def __init__(
|
||||
self,
|
||||
master: Misc | None = None,
|
||||
cnf: dict[str, Any] | None = ...,
|
||||
cnf: dict[str, Any] | None = {},
|
||||
*,
|
||||
activebackground: _Color = ...,
|
||||
activeforeground: _Color = ...,
|
||||
@@ -1865,7 +1865,7 @@ class Entry(Widget, XView):
|
||||
def __init__(
|
||||
self,
|
||||
master: Misc | None = None,
|
||||
cnf: dict[str, Any] | None = ...,
|
||||
cnf: dict[str, Any] | None = {},
|
||||
*,
|
||||
background: _Color = ...,
|
||||
bd: _ScreenUnits = ...,
|
||||
@@ -1976,7 +1976,7 @@ class Frame(Widget):
|
||||
def __init__(
|
||||
self,
|
||||
master: Misc | None = None,
|
||||
cnf: dict[str, Any] | None = ...,
|
||||
cnf: dict[str, Any] | None = {},
|
||||
*,
|
||||
background: _Color = ...,
|
||||
bd: _ScreenUnits = ...,
|
||||
@@ -2028,7 +2028,7 @@ class Label(Widget):
|
||||
def __init__(
|
||||
self,
|
||||
master: Misc | None = None,
|
||||
cnf: dict[str, Any] | None = ...,
|
||||
cnf: dict[str, Any] | None = {},
|
||||
*,
|
||||
activebackground: _Color = ...,
|
||||
activeforeground: _Color = ...,
|
||||
@@ -2108,7 +2108,7 @@ class Listbox(Widget, XView, YView):
|
||||
def __init__(
|
||||
self,
|
||||
master: Misc | None = None,
|
||||
cnf: dict[str, Any] | None = ...,
|
||||
cnf: dict[str, Any] | None = {},
|
||||
*,
|
||||
activestyle: Literal["dotbox", "none", "underline"] = ...,
|
||||
background: _Color = ...,
|
||||
@@ -2221,7 +2221,7 @@ class Menu(Widget):
|
||||
def __init__(
|
||||
self,
|
||||
master: Misc | None = None,
|
||||
cnf: dict[str, Any] | None = ...,
|
||||
cnf: dict[str, Any] | None = {},
|
||||
*,
|
||||
activebackground: _Color = ...,
|
||||
activeborderwidth: _ScreenUnits = ...,
|
||||
@@ -2281,11 +2281,11 @@ class Menu(Widget):
|
||||
config = configure
|
||||
def tk_popup(self, x: int, y: int, entry: str | int = "") -> None: ...
|
||||
def activate(self, index: str | int) -> None: ...
|
||||
def add(self, itemType, cnf=..., **kw): ... # docstring says "Internal function."
|
||||
def insert(self, index, itemType, cnf=..., **kw): ... # docstring says "Internal function."
|
||||
def add(self, itemType, cnf={}, **kw): ... # docstring says "Internal function."
|
||||
def insert(self, index, itemType, cnf={}, **kw): ... # docstring says "Internal function."
|
||||
def add_cascade(
|
||||
self,
|
||||
cnf: dict[str, Any] | None = ...,
|
||||
cnf: dict[str, Any] | None = {},
|
||||
*,
|
||||
accelerator: str = ...,
|
||||
activebackground: _Color = ...,
|
||||
@@ -2306,7 +2306,7 @@ class Menu(Widget):
|
||||
) -> None: ...
|
||||
def add_checkbutton(
|
||||
self,
|
||||
cnf: dict[str, Any] | None = ...,
|
||||
cnf: dict[str, Any] | None = {},
|
||||
*,
|
||||
accelerator: str = ...,
|
||||
activebackground: _Color = ...,
|
||||
@@ -2332,7 +2332,7 @@ class Menu(Widget):
|
||||
) -> None: ...
|
||||
def add_command(
|
||||
self,
|
||||
cnf: dict[str, Any] | None = ...,
|
||||
cnf: dict[str, Any] | None = {},
|
||||
*,
|
||||
accelerator: str = ...,
|
||||
activebackground: _Color = ...,
|
||||
@@ -2352,7 +2352,7 @@ class Menu(Widget):
|
||||
) -> None: ...
|
||||
def add_radiobutton(
|
||||
self,
|
||||
cnf: dict[str, Any] | None = ...,
|
||||
cnf: dict[str, Any] | None = {},
|
||||
*,
|
||||
accelerator: str = ...,
|
||||
activebackground: _Color = ...,
|
||||
@@ -2375,11 +2375,11 @@ class Menu(Widget):
|
||||
value: Any = ...,
|
||||
variable: Variable = ...,
|
||||
) -> None: ...
|
||||
def add_separator(self, cnf: dict[str, Any] | None = ..., *, background: _Color = ...) -> None: ...
|
||||
def add_separator(self, cnf: dict[str, Any] | None = {}, *, background: _Color = ...) -> None: ...
|
||||
def insert_cascade(
|
||||
self,
|
||||
index: str | int,
|
||||
cnf: dict[str, Any] | None = ...,
|
||||
cnf: dict[str, Any] | None = {},
|
||||
*,
|
||||
accelerator: str = ...,
|
||||
activebackground: _Color = ...,
|
||||
@@ -2401,7 +2401,7 @@ class Menu(Widget):
|
||||
def insert_checkbutton(
|
||||
self,
|
||||
index: str | int,
|
||||
cnf: dict[str, Any] | None = ...,
|
||||
cnf: dict[str, Any] | None = {},
|
||||
*,
|
||||
accelerator: str = ...,
|
||||
activebackground: _Color = ...,
|
||||
@@ -2428,7 +2428,7 @@ class Menu(Widget):
|
||||
def insert_command(
|
||||
self,
|
||||
index: str | int,
|
||||
cnf: dict[str, Any] | None = ...,
|
||||
cnf: dict[str, Any] | None = {},
|
||||
*,
|
||||
accelerator: str = ...,
|
||||
activebackground: _Color = ...,
|
||||
@@ -2449,7 +2449,7 @@ class Menu(Widget):
|
||||
def insert_radiobutton(
|
||||
self,
|
||||
index: str | int,
|
||||
cnf: dict[str, Any] | None = ...,
|
||||
cnf: dict[str, Any] | None = {},
|
||||
*,
|
||||
accelerator: str = ...,
|
||||
activebackground: _Color = ...,
|
||||
@@ -2472,7 +2472,7 @@ class Menu(Widget):
|
||||
value: Any = ...,
|
||||
variable: Variable = ...,
|
||||
) -> None: ...
|
||||
def insert_separator(self, index: str | int, cnf: dict[str, Any] | None = ..., *, background: _Color = ...) -> None: ...
|
||||
def insert_separator(self, index: str | int, cnf: dict[str, Any] | None = {}, *, background: _Color = ...) -> None: ...
|
||||
def delete(self, index1: str | int, index2: str | int | None = None) -> None: ...
|
||||
def entrycget(self, index: str | int, option: str) -> Any: ...
|
||||
def entryconfigure(
|
||||
@@ -2491,7 +2491,7 @@ class Menubutton(Widget):
|
||||
def __init__(
|
||||
self,
|
||||
master: Misc | None = None,
|
||||
cnf: dict[str, Any] | None = ...,
|
||||
cnf: dict[str, Any] | None = {},
|
||||
*,
|
||||
activebackground: _Color = ...,
|
||||
activeforeground: _Color = ...,
|
||||
@@ -2577,7 +2577,7 @@ class Message(Widget):
|
||||
def __init__(
|
||||
self,
|
||||
master: Misc | None = None,
|
||||
cnf: dict[str, Any] | None = ...,
|
||||
cnf: dict[str, Any] | None = {},
|
||||
*,
|
||||
anchor: _Anchor = ...,
|
||||
aspect: int = ...,
|
||||
@@ -2640,7 +2640,7 @@ class Radiobutton(Widget):
|
||||
def __init__(
|
||||
self,
|
||||
master: Misc | None = None,
|
||||
cnf: dict[str, Any] | None = ...,
|
||||
cnf: dict[str, Any] | None = {},
|
||||
*,
|
||||
activebackground: _Color = ...,
|
||||
activeforeground: _Color = ...,
|
||||
@@ -2744,7 +2744,7 @@ class Scale(Widget):
|
||||
def __init__(
|
||||
self,
|
||||
master: Misc | None = None,
|
||||
cnf: dict[str, Any] | None = ...,
|
||||
cnf: dict[str, Any] | None = {},
|
||||
*,
|
||||
activebackground: _Color = ...,
|
||||
background: _Color = ...,
|
||||
@@ -2835,7 +2835,7 @@ class Scrollbar(Widget):
|
||||
def __init__(
|
||||
self,
|
||||
master: Misc | None = None,
|
||||
cnf: dict[str, Any] | None = ...,
|
||||
cnf: dict[str, Any] | None = {},
|
||||
*,
|
||||
activebackground: _Color = ...,
|
||||
activerelief: _Relief = ...,
|
||||
@@ -2907,7 +2907,7 @@ class Text(Widget, XView, YView):
|
||||
def __init__(
|
||||
self,
|
||||
master: Misc | None = None,
|
||||
cnf: dict[str, Any] | None = ...,
|
||||
cnf: dict[str, Any] | None = {},
|
||||
*,
|
||||
autoseparators: bool = ...,
|
||||
background: _Color = ...,
|
||||
@@ -3078,7 +3078,7 @@ class Text(Widget, XView, YView):
|
||||
# TODO: image_* methods
|
||||
def image_cget(self, index, option): ...
|
||||
def image_configure(self, index, cnf: Incomplete | None = None, **kw): ...
|
||||
def image_create(self, index, cnf=..., **kw): ...
|
||||
def image_create(self, index, cnf={}, **kw): ...
|
||||
def image_names(self): ...
|
||||
def index(self, index: _TextIndex) -> str: ...
|
||||
def insert(self, index: _TextIndex, chars: str, *args: str | list[str] | tuple[str, ...]) -> None: ...
|
||||
@@ -3092,7 +3092,7 @@ class Text(Widget, XView, YView):
|
||||
def mark_next(self, index: _TextIndex) -> str | None: ...
|
||||
def mark_previous(self, index: _TextIndex) -> str | None: ...
|
||||
# **kw of peer_create is same as the kwargs of Text.__init__
|
||||
def peer_create(self, newPathName: str | Text, cnf: dict[str, Any] = ..., **kw) -> None: ...
|
||||
def peer_create(self, newPathName: str | Text, cnf: dict[str, Any] = {}, **kw) -> None: ...
|
||||
def peer_names(self) -> tuple[_tkinter.Tcl_Obj, ...]: ...
|
||||
def replace(self, index1: _TextIndex, index2: _TextIndex, chars: str, *args: str | list[str] | tuple[str, ...]) -> None: ...
|
||||
def scan_mark(self, x: int, y: int) -> None: ...
|
||||
@@ -3181,7 +3181,7 @@ class Text(Widget, XView, YView):
|
||||
def window_cget(self, index, option): ...
|
||||
def window_configure(self, index, cnf: Incomplete | None = None, **kw): ...
|
||||
window_config = window_configure
|
||||
def window_create(self, index, cnf=..., **kw) -> None: ...
|
||||
def window_create(self, index, cnf={}, **kw) -> None: ...
|
||||
def window_names(self): ...
|
||||
def yview_pickplace(self, *what): ... # deprecated
|
||||
|
||||
@@ -3222,7 +3222,7 @@ class Image(_Image):
|
||||
name: Incomplete
|
||||
tk: _tkinter.TkappType
|
||||
def __init__(
|
||||
self, imgtype, name: Incomplete | None = None, cnf=..., master: Misc | _tkinter.TkappType | None = None, **kw
|
||||
self, imgtype, name: Incomplete | None = None, cnf={}, master: Misc | _tkinter.TkappType | None = None, **kw
|
||||
) -> None: ...
|
||||
def __del__(self) -> None: ...
|
||||
def __setitem__(self, key, value) -> None: ...
|
||||
@@ -3238,7 +3238,7 @@ class PhotoImage(Image, _PhotoImageLike):
|
||||
def __init__(
|
||||
self,
|
||||
name: str | None = None,
|
||||
cnf: dict[str, Any] = ...,
|
||||
cnf: dict[str, Any] = {},
|
||||
master: Misc | _tkinter.TkappType | None = None,
|
||||
*,
|
||||
data: str | bytes = ..., # not same as data argument of put()
|
||||
@@ -3291,7 +3291,7 @@ class BitmapImage(Image, _BitmapImageLike):
|
||||
def __init__(
|
||||
self,
|
||||
name: Incomplete | None = None,
|
||||
cnf: dict[str, Any] = ...,
|
||||
cnf: dict[str, Any] = {},
|
||||
master: Misc | _tkinter.TkappType | None = None,
|
||||
*,
|
||||
background: _Color = ...,
|
||||
@@ -3309,7 +3309,7 @@ class Spinbox(Widget, XView):
|
||||
def __init__(
|
||||
self,
|
||||
master: Misc | None = None,
|
||||
cnf: dict[str, Any] | None = ...,
|
||||
cnf: dict[str, Any] | None = {},
|
||||
*,
|
||||
activebackground: _Color = ...,
|
||||
background: _Color = ...,
|
||||
@@ -3449,7 +3449,7 @@ class LabelFrame(Widget):
|
||||
def __init__(
|
||||
self,
|
||||
master: Misc | None = None,
|
||||
cnf: dict[str, Any] | None = ...,
|
||||
cnf: dict[str, Any] | None = {},
|
||||
*,
|
||||
background: _Color = ...,
|
||||
bd: _ScreenUnits = ...,
|
||||
@@ -3514,7 +3514,7 @@ class PanedWindow(Widget):
|
||||
def __init__(
|
||||
self,
|
||||
master: Misc | None = None,
|
||||
cnf: dict[str, Any] | None = ...,
|
||||
cnf: dict[str, Any] | None = {},
|
||||
*,
|
||||
background: _Color = ...,
|
||||
bd: _ScreenUnits = ...,
|
||||
|
||||
@@ -12,5 +12,5 @@ DIALOG_ICON: str
|
||||
class Dialog(Widget):
|
||||
widgetName: str
|
||||
num: int
|
||||
def __init__(self, master: Incomplete | None = None, cnf: Mapping[str, Any] = ..., **kw: Incomplete) -> None: ...
|
||||
def __init__(self, master: Incomplete | None = None, cnf: Mapping[str, Any] = {}, **kw: Incomplete) -> None: ...
|
||||
def destroy(self) -> None: ...
|
||||
|
||||
@@ -14,7 +14,7 @@ class SimpleDialog:
|
||||
self,
|
||||
master: Misc | None,
|
||||
text: str = "",
|
||||
buttons: list[str] = ...,
|
||||
buttons: list[str] = [],
|
||||
default: int | None = None,
|
||||
cancel: int | None = None,
|
||||
title: str | None = None,
|
||||
|
||||
@@ -54,117 +54,117 @@ class TixWidget(tkinter.Widget):
|
||||
master: tkinter.Misc | None = None,
|
||||
widgetName: str | None = None,
|
||||
static_options: list[str] | None = None,
|
||||
cnf: dict[str, Any] = ...,
|
||||
kw: dict[str, Any] = ...,
|
||||
cnf: dict[str, Any] = {},
|
||||
kw: dict[str, Any] = {},
|
||||
) -> None: ...
|
||||
def __getattr__(self, name: str): ...
|
||||
def set_silent(self, value: str) -> None: ...
|
||||
def subwidget(self, name: str) -> tkinter.Widget: ...
|
||||
def subwidgets_all(self) -> list[tkinter.Widget]: ...
|
||||
def config_all(self, option: Any, value: Any) -> None: ...
|
||||
def image_create(self, imgtype: str, cnf: dict[str, Any] = ..., master: tkinter.Widget | None = None, **kw) -> None: ...
|
||||
def image_create(self, imgtype: str, cnf: dict[str, Any] = {}, master: tkinter.Widget | None = None, **kw) -> None: ...
|
||||
def image_delete(self, imgname: str) -> None: ...
|
||||
|
||||
class TixSubWidget(TixWidget):
|
||||
def __init__(self, master: tkinter.Widget, name: str, destroy_physically: int = 1, check_intermediate: int = 1) -> None: ...
|
||||
|
||||
class DisplayStyle:
|
||||
def __init__(self, itemtype: str, cnf: dict[str, Any] = ..., *, master: tkinter.Widget | None = None, **kw) -> None: ...
|
||||
def __init__(self, itemtype: str, cnf: dict[str, Any] = {}, *, master: tkinter.Widget | None = None, **kw) -> None: ...
|
||||
def __getitem__(self, key: str): ...
|
||||
def __setitem__(self, key: str, value: Any) -> None: ...
|
||||
def delete(self) -> None: ...
|
||||
def config(self, cnf: dict[str, Any] = ..., **kw): ...
|
||||
def config(self, cnf: dict[str, Any] = {}, **kw): ...
|
||||
|
||||
class Balloon(TixWidget):
|
||||
def __init__(self, master: tkinter.Widget | None = None, cnf: dict[str, Any] = ..., **kw) -> None: ...
|
||||
def bind_widget(self, widget: tkinter.Widget, cnf: dict[str, Any] = ..., **kw) -> None: ...
|
||||
def __init__(self, master: tkinter.Widget | None = None, cnf: dict[str, Any] = {}, **kw) -> None: ...
|
||||
def bind_widget(self, widget: tkinter.Widget, cnf: dict[str, Any] = {}, **kw) -> None: ...
|
||||
def unbind_widget(self, widget: tkinter.Widget) -> None: ...
|
||||
|
||||
class ButtonBox(TixWidget):
|
||||
def __init__(self, master: tkinter.Widget | None = None, cnf: dict[str, Any] = ..., **kw) -> None: ...
|
||||
def add(self, name: str, cnf: dict[str, Any] = ..., **kw) -> tkinter.Widget: ...
|
||||
def __init__(self, master: tkinter.Widget | None = None, cnf: dict[str, Any] = {}, **kw) -> None: ...
|
||||
def add(self, name: str, cnf: dict[str, Any] = {}, **kw) -> tkinter.Widget: ...
|
||||
def invoke(self, name: str) -> None: ...
|
||||
|
||||
class ComboBox(TixWidget):
|
||||
def __init__(self, master: tkinter.Widget | None = None, cnf: dict[str, Any] = ..., **kw) -> None: ...
|
||||
def __init__(self, master: tkinter.Widget | None = None, cnf: dict[str, Any] = {}, **kw) -> None: ...
|
||||
def add_history(self, str: str) -> None: ...
|
||||
def append_history(self, str: str) -> None: ...
|
||||
def insert(self, index: int, str: str) -> None: ...
|
||||
def pick(self, index: int) -> None: ...
|
||||
|
||||
class Control(TixWidget):
|
||||
def __init__(self, master: tkinter.Widget | None = None, cnf: dict[str, Any] = ..., **kw) -> None: ...
|
||||
def __init__(self, master: tkinter.Widget | None = None, cnf: dict[str, Any] = {}, **kw) -> None: ...
|
||||
def decrement(self) -> None: ...
|
||||
def increment(self) -> None: ...
|
||||
def invoke(self) -> None: ...
|
||||
|
||||
class LabelEntry(TixWidget):
|
||||
def __init__(self, master: tkinter.Widget | None = None, cnf: dict[str, Any] = ..., **kw) -> None: ...
|
||||
def __init__(self, master: tkinter.Widget | None = None, cnf: dict[str, Any] = {}, **kw) -> None: ...
|
||||
|
||||
class LabelFrame(TixWidget):
|
||||
def __init__(self, master: tkinter.Widget | None = None, cnf: dict[str, Any] = ..., **kw) -> None: ...
|
||||
def __init__(self, master: tkinter.Widget | None = None, cnf: dict[str, Any] = {}, **kw) -> None: ...
|
||||
|
||||
class Meter(TixWidget):
|
||||
def __init__(self, master: tkinter.Widget | None = None, cnf: dict[str, Any] = ..., **kw) -> None: ...
|
||||
def __init__(self, master: tkinter.Widget | None = None, cnf: dict[str, Any] = {}, **kw) -> None: ...
|
||||
|
||||
class OptionMenu(TixWidget):
|
||||
def __init__(self, master: tkinter.Widget | None, cnf: dict[str, Any] = ..., **kw) -> None: ...
|
||||
def add_command(self, name: str, cnf: dict[str, Any] = ..., **kw) -> None: ...
|
||||
def add_separator(self, name: str, cnf: dict[str, Any] = ..., **kw) -> None: ...
|
||||
def __init__(self, master: tkinter.Widget | None, cnf: dict[str, Any] = {}, **kw) -> None: ...
|
||||
def add_command(self, name: str, cnf: dict[str, Any] = {}, **kw) -> None: ...
|
||||
def add_separator(self, name: str, cnf: dict[str, Any] = {}, **kw) -> None: ...
|
||||
def delete(self, name: str) -> None: ...
|
||||
def disable(self, name: str) -> None: ...
|
||||
def enable(self, name: str) -> None: ...
|
||||
|
||||
class PopupMenu(TixWidget):
|
||||
def __init__(self, master: tkinter.Widget | None, cnf: dict[str, Any] = ..., **kw) -> None: ...
|
||||
def __init__(self, master: tkinter.Widget | None, cnf: dict[str, Any] = {}, **kw) -> None: ...
|
||||
def bind_widget(self, widget: tkinter.Widget) -> None: ...
|
||||
def unbind_widget(self, widget: tkinter.Widget) -> None: ...
|
||||
def post_widget(self, widget: tkinter.Widget, x: int, y: int) -> None: ...
|
||||
|
||||
class Select(TixWidget):
|
||||
def __init__(self, master: tkinter.Widget | None, cnf: dict[str, Any] = ..., **kw) -> None: ...
|
||||
def add(self, name: str, cnf: dict[str, Any] = ..., **kw) -> tkinter.Widget: ...
|
||||
def __init__(self, master: tkinter.Widget | None, cnf: dict[str, Any] = {}, **kw) -> None: ...
|
||||
def add(self, name: str, cnf: dict[str, Any] = {}, **kw) -> tkinter.Widget: ...
|
||||
def invoke(self, name: str) -> None: ...
|
||||
|
||||
class StdButtonBox(TixWidget):
|
||||
def __init__(self, master: tkinter.Widget | None = None, cnf: dict[str, Any] = ..., **kw) -> None: ...
|
||||
def __init__(self, master: tkinter.Widget | None = None, cnf: dict[str, Any] = {}, **kw) -> None: ...
|
||||
def invoke(self, name: str) -> None: ...
|
||||
|
||||
class DirList(TixWidget):
|
||||
def __init__(self, master: tkinter.Widget | None, cnf: dict[str, Any] = ..., **kw) -> None: ...
|
||||
def __init__(self, master: tkinter.Widget | None, cnf: dict[str, Any] = {}, **kw) -> None: ...
|
||||
def chdir(self, dir: str) -> None: ...
|
||||
|
||||
class DirTree(TixWidget):
|
||||
def __init__(self, master: tkinter.Widget | None, cnf: dict[str, Any] = ..., **kw) -> None: ...
|
||||
def __init__(self, master: tkinter.Widget | None, cnf: dict[str, Any] = {}, **kw) -> None: ...
|
||||
def chdir(self, dir: str) -> None: ...
|
||||
|
||||
class DirSelectDialog(TixWidget):
|
||||
def __init__(self, master: tkinter.Widget | None, cnf: dict[str, Any] = ..., **kw) -> None: ...
|
||||
def __init__(self, master: tkinter.Widget | None, cnf: dict[str, Any] = {}, **kw) -> None: ...
|
||||
def popup(self) -> None: ...
|
||||
def popdown(self) -> None: ...
|
||||
|
||||
class DirSelectBox(TixWidget):
|
||||
def __init__(self, master: tkinter.Widget | None, cnf: dict[str, Any] = ..., **kw) -> None: ...
|
||||
def __init__(self, master: tkinter.Widget | None, cnf: dict[str, Any] = {}, **kw) -> None: ...
|
||||
|
||||
class ExFileSelectBox(TixWidget):
|
||||
def __init__(self, master: tkinter.Widget | None, cnf: dict[str, Any] = ..., **kw) -> None: ...
|
||||
def __init__(self, master: tkinter.Widget | None, cnf: dict[str, Any] = {}, **kw) -> None: ...
|
||||
def filter(self) -> None: ...
|
||||
def invoke(self) -> None: ...
|
||||
|
||||
class FileSelectBox(TixWidget):
|
||||
def __init__(self, master: tkinter.Widget | None, cnf: dict[str, Any] = ..., **kw) -> None: ...
|
||||
def __init__(self, master: tkinter.Widget | None, cnf: dict[str, Any] = {}, **kw) -> None: ...
|
||||
def apply_filter(self) -> None: ...
|
||||
def invoke(self) -> None: ...
|
||||
|
||||
class FileEntry(TixWidget):
|
||||
def __init__(self, master: tkinter.Widget | None, cnf: dict[str, Any] = ..., **kw) -> None: ...
|
||||
def __init__(self, master: tkinter.Widget | None, cnf: dict[str, Any] = {}, **kw) -> None: ...
|
||||
def invoke(self) -> None: ...
|
||||
def file_dialog(self) -> None: ...
|
||||
|
||||
class HList(TixWidget, tkinter.XView, tkinter.YView):
|
||||
def __init__(self, master: tkinter.Widget | None = None, cnf: dict[str, Any] = ..., **kw) -> None: ...
|
||||
def add(self, entry: str, cnf: dict[str, Any] = ..., **kw) -> tkinter.Widget: ...
|
||||
def add_child(self, parent: str | None = None, cnf: dict[str, Any] = ..., **kw) -> tkinter.Widget: ...
|
||||
def __init__(self, master: tkinter.Widget | None = None, cnf: dict[str, Any] = {}, **kw) -> None: ...
|
||||
def add(self, entry: str, cnf: dict[str, Any] = {}, **kw) -> tkinter.Widget: ...
|
||||
def add_child(self, parent: str | None = None, cnf: dict[str, Any] = {}, **kw) -> tkinter.Widget: ...
|
||||
def anchor_set(self, entry: str) -> None: ...
|
||||
def anchor_clear(self) -> None: ...
|
||||
# FIXME: Overload, certain combos return, others don't
|
||||
@@ -177,16 +177,16 @@ class HList(TixWidget, tkinter.XView, tkinter.YView):
|
||||
def dragsite_clear(self) -> None: ...
|
||||
def dropsite_set(self, index: int) -> None: ...
|
||||
def dropsite_clear(self) -> None: ...
|
||||
def header_create(self, col: int, cnf: dict[str, Any] = ..., **kw) -> None: ...
|
||||
def header_configure(self, col: int, cnf: dict[str, Any] = ..., **kw) -> Incomplete | None: ...
|
||||
def header_create(self, col: int, cnf: dict[str, Any] = {}, **kw) -> None: ...
|
||||
def header_configure(self, col: int, cnf: dict[str, Any] = {}, **kw) -> Incomplete | None: ...
|
||||
def header_cget(self, col: int, opt): ...
|
||||
def header_exists(self, col: int) -> bool: ...
|
||||
def header_exist(self, col: int) -> bool: ...
|
||||
def header_delete(self, col: int) -> None: ...
|
||||
def header_size(self, col: int) -> int: ...
|
||||
def hide_entry(self, entry: str) -> None: ...
|
||||
def indicator_create(self, entry: str, cnf: dict[str, Any] = ..., **kw) -> None: ...
|
||||
def indicator_configure(self, entry: str, cnf: dict[str, Any] = ..., **kw) -> Incomplete | None: ...
|
||||
def indicator_create(self, entry: str, cnf: dict[str, Any] = {}, **kw) -> None: ...
|
||||
def indicator_configure(self, entry: str, cnf: dict[str, Any] = {}, **kw) -> Incomplete | None: ...
|
||||
def indicator_cget(self, entry: str, opt): ...
|
||||
def indicator_exists(self, entry: str) -> bool: ...
|
||||
def indicator_delete(self, entry: str) -> None: ...
|
||||
@@ -204,21 +204,21 @@ class HList(TixWidget, tkinter.XView, tkinter.YView):
|
||||
def info_prev(self, entry: str) -> str: ...
|
||||
def info_selection(self) -> tuple[str, ...]: ...
|
||||
def item_cget(self, entry: str, col: int, opt): ...
|
||||
def item_configure(self, entry: str, col: int, cnf: dict[str, Any] = ..., **kw) -> Incomplete | None: ...
|
||||
def item_create(self, entry: str, col: int, cnf: dict[str, Any] = ..., **kw) -> None: ...
|
||||
def item_configure(self, entry: str, col: int, cnf: dict[str, Any] = {}, **kw) -> Incomplete | None: ...
|
||||
def item_create(self, entry: str, col: int, cnf: dict[str, Any] = {}, **kw) -> None: ...
|
||||
def item_exists(self, entry: str, col: int) -> bool: ...
|
||||
def item_delete(self, entry: str, col: int) -> None: ...
|
||||
def entrycget(self, entry: str, opt): ...
|
||||
def entryconfigure(self, entry: str, cnf: dict[str, Any] = ..., **kw) -> Incomplete | None: ...
|
||||
def entryconfigure(self, entry: str, cnf: dict[str, Any] = {}, **kw) -> Incomplete | None: ...
|
||||
def nearest(self, y: int) -> str: ...
|
||||
def see(self, entry: str) -> None: ...
|
||||
def selection_clear(self, cnf: dict[str, Any] = ..., **kw) -> None: ...
|
||||
def selection_clear(self, cnf: dict[str, Any] = {}, **kw) -> None: ...
|
||||
def selection_includes(self, entry: str) -> bool: ...
|
||||
def selection_set(self, first: str, last: str | None = None) -> None: ...
|
||||
def show_entry(self, entry: str) -> None: ...
|
||||
|
||||
class CheckList(TixWidget):
|
||||
def __init__(self, master: tkinter.Widget | None = None, cnf: dict[str, Any] = ..., **kw) -> None: ...
|
||||
def __init__(self, master: tkinter.Widget | None = None, cnf: dict[str, Any] = {}, **kw) -> None: ...
|
||||
def autosetmode(self) -> None: ...
|
||||
def close(self, entrypath: str) -> None: ...
|
||||
def getmode(self, entrypath: str) -> str: ...
|
||||
@@ -228,7 +228,7 @@ class CheckList(TixWidget):
|
||||
def setstatus(self, entrypath: str, mode: str = "on") -> None: ...
|
||||
|
||||
class Tree(TixWidget):
|
||||
def __init__(self, master: tkinter.Widget | None = None, cnf: dict[str, Any] = ..., **kw) -> None: ...
|
||||
def __init__(self, master: tkinter.Widget | None = None, cnf: dict[str, Any] = {}, **kw) -> None: ...
|
||||
def autosetmode(self) -> None: ...
|
||||
def close(self, entrypath: str) -> None: ...
|
||||
def getmode(self, entrypath: str) -> str: ...
|
||||
@@ -236,7 +236,7 @@ class Tree(TixWidget):
|
||||
def setmode(self, entrypath: str, mode: str = "none") -> None: ...
|
||||
|
||||
class TList(TixWidget, tkinter.XView, tkinter.YView):
|
||||
def __init__(self, master: tkinter.Widget | None = None, cnf: dict[str, Any] = ..., **kw) -> None: ...
|
||||
def __init__(self, master: tkinter.Widget | None = None, cnf: dict[str, Any] = {}, **kw) -> None: ...
|
||||
def active_set(self, index: int) -> None: ...
|
||||
def active_clear(self) -> None: ...
|
||||
def anchor_set(self, index: int) -> None: ...
|
||||
@@ -246,7 +246,7 @@ class TList(TixWidget, tkinter.XView, tkinter.YView):
|
||||
def dragsite_clear(self) -> None: ...
|
||||
def dropsite_set(self, index: int) -> None: ...
|
||||
def dropsite_clear(self) -> None: ...
|
||||
def insert(self, index: int, cnf: dict[str, Any] = ..., **kw) -> None: ...
|
||||
def insert(self, index: int, cnf: dict[str, Any] = {}, **kw) -> None: ...
|
||||
def info_active(self) -> int: ...
|
||||
def info_anchor(self) -> int: ...
|
||||
def info_down(self, index: int) -> int: ...
|
||||
@@ -257,29 +257,29 @@ class TList(TixWidget, tkinter.XView, tkinter.YView):
|
||||
def info_up(self, index: int) -> int: ...
|
||||
def nearest(self, x: int, y: int) -> int: ...
|
||||
def see(self, index: int) -> None: ...
|
||||
def selection_clear(self, cnf: dict[str, Any] = ..., **kw) -> None: ...
|
||||
def selection_clear(self, cnf: dict[str, Any] = {}, **kw) -> None: ...
|
||||
def selection_includes(self, index: int) -> bool: ...
|
||||
def selection_set(self, first: int, last: int | None = None) -> None: ...
|
||||
|
||||
class PanedWindow(TixWidget):
|
||||
def __init__(self, master: tkinter.Widget | None, cnf: dict[str, Any] = ..., **kw) -> None: ...
|
||||
def add(self, name: str, cnf: dict[str, Any] = ..., **kw) -> None: ...
|
||||
def __init__(self, master: tkinter.Widget | None, cnf: dict[str, Any] = {}, **kw) -> None: ...
|
||||
def add(self, name: str, cnf: dict[str, Any] = {}, **kw) -> None: ...
|
||||
def delete(self, name: str) -> None: ...
|
||||
def forget(self, name: str) -> None: ... # type: ignore[override]
|
||||
def panecget(self, entry: str, opt): ...
|
||||
def paneconfigure(self, entry: str, cnf: dict[str, Any] = ..., **kw) -> Incomplete | None: ...
|
||||
def paneconfigure(self, entry: str, cnf: dict[str, Any] = {}, **kw) -> Incomplete | None: ...
|
||||
def panes(self) -> list[tkinter.Widget]: ...
|
||||
|
||||
class ListNoteBook(TixWidget):
|
||||
def __init__(self, master: tkinter.Widget | None, cnf: dict[str, Any] = ..., **kw) -> None: ...
|
||||
def add(self, name: str, cnf: dict[str, Any] = ..., **kw) -> None: ...
|
||||
def __init__(self, master: tkinter.Widget | None, cnf: dict[str, Any] = {}, **kw) -> None: ...
|
||||
def add(self, name: str, cnf: dict[str, Any] = {}, **kw) -> None: ...
|
||||
def page(self, name: str) -> tkinter.Widget: ...
|
||||
def pages(self) -> list[tkinter.Widget]: ...
|
||||
def raise_page(self, name: str) -> None: ...
|
||||
|
||||
class NoteBook(TixWidget):
|
||||
def __init__(self, master: tkinter.Widget | None = None, cnf: dict[str, Any] = ..., **kw) -> None: ...
|
||||
def add(self, name: str, cnf: dict[str, Any] = ..., **kw) -> None: ...
|
||||
def __init__(self, master: tkinter.Widget | None = None, cnf: dict[str, Any] = {}, **kw) -> None: ...
|
||||
def add(self, name: str, cnf: dict[str, Any] = {}, **kw) -> None: ...
|
||||
def delete(self, name: str) -> None: ...
|
||||
def page(self, name: str) -> tkinter.Widget: ...
|
||||
def pages(self) -> list[tkinter.Widget]: ...
|
||||
@@ -287,12 +287,12 @@ class NoteBook(TixWidget):
|
||||
def raised(self) -> bool: ...
|
||||
|
||||
class InputOnly(TixWidget):
|
||||
def __init__(self, master: tkinter.Widget | None = None, cnf: dict[str, Any] = ..., **kw) -> None: ...
|
||||
def __init__(self, master: tkinter.Widget | None = None, cnf: dict[str, Any] = {}, **kw) -> None: ...
|
||||
|
||||
class Form:
|
||||
def __setitem__(self, key: str, value: Any) -> None: ...
|
||||
def config(self, cnf: dict[str, Any] = ..., **kw) -> None: ...
|
||||
def form(self, cnf: dict[str, Any] = ..., **kw) -> None: ...
|
||||
def config(self, cnf: dict[str, Any] = {}, **kw) -> None: ...
|
||||
def form(self, cnf: dict[str, Any] = {}, **kw) -> None: ...
|
||||
def check(self) -> bool: ...
|
||||
def forget(self) -> None: ...
|
||||
def grid(self, xsize: int = 0, ysize: int = 0) -> tuple[int, int] | None: ...
|
||||
|
||||
Reference in New Issue
Block a user