2018-11-02から1日間の記事一覧
Bufferのread_onlyがAlways()だと、Bufferのtextとかdocumentとか何も変更できないから、Never()にする必要がある form prompt_toolkit.filter import to_filter # read_onlyをONにする right.content.buffer.read_only = to_filter(True) # read_onlyをOFF…
指定したコントロールにフォーカスがあるかどうか prompt_toolkit.layout.layout.Layout.has_focus()で確認できる has_focus(value) Check whether the given control has the focus. :param value: UIControl or Window instance. Reference — prompt_toolk…