Skip to content
Discussion options

You must be logged in to vote

Thanks for that info. So it is possible to stop cursor blink, but has to be done per-widget. Here's a version of the example that does so:

from textual.app import App, ComposeResult
from textual.widgets import Input

class InputApp(App):
    def compose(self) -> ComposeResult:
        nameInput = Input(placeholder="First Name")
        nameInput.cursor_blink = False
        yield nameInput
        nameInput = Input(placeholder="Last Name")
        nameInput.cursor_blink = False
        yield nameInput

if __name__ == "__main__":
    app = InputApp()
    app.run()

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
2 replies
@mark-summerfield
Comment options

@davep
Comment options

Comment options

You must be logged in to vote
2 replies
@davep
Comment options

@willmcgugan
Comment options

Answer selected by davep
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #2394 on April 27, 2023 07:35.