Skip to content

Commit ca975df

Browse files
committed
bind warning
1 parent d076283 commit ca975df

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/textual/app.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1773,6 +1773,10 @@ def bind(
17731773
) -> None:
17741774
"""Bind a key to an action.
17751775
1776+
!!! warning
1777+
This method may be private or removed in a future version of Textual.
1778+
See [dynamic actions](/guide/actions#dynamic-actions) for a more flexible alternative to updating bindings.
1779+
17761780
Args:
17771781
keys: A comma separated list of keys, i.e.
17781782
action: Action to bind to.

0 commit comments

Comments
 (0)