This commit is contained in:
demberto
2023-04-18 18:50:20 +05:30
parent a9b44c180e
commit 79cd10ddfd
13 changed files with 53 additions and 33 deletions

View File

@ -5,6 +5,11 @@ import sys
import tkinter
from typing import Any, Callable
if sys.version_info >= (3, 8):
from typing import Literal
else:
from typing_extensions import Literal
from .core_rendering import CTkCanvas, DrawEngine
from .core_widget_classes import CTkBaseClass, DropdownMenu
from .font import CTkFont
@ -37,7 +42,7 @@ class CTkOptionMenu(CTkBaseClass):
dropdown_font: tuple[Any, ...] | CTkFont | None = None,
values: list | None = None,
variable: tkinter.Variable | None = None,
state: str = tkinter.NORMAL,
state: Literal["normal", "disabled", "readonly"] = "normal",
hover: bool = True,
command: Callable[[str], None] | None = None,
dynamic_resizing: bool = True,