• tk and ttk cursor blink

    From Mark Summerfield@21:1/5 to All on Wed Jun 5 07:02:29 2024
    According to https://core.tcl-lang.org/tips/doc/trunk/tip/675.md it is now possible to control cursor blink in ttk widgets.

    I often use both tk and ttk widgets (e.g., tk.text and ttk.entry) and
    don't want cursor blink in either.

    My understanding is that to achieve this I should now start my
    applications with these lines, the first for tk widgets and the second for
    ttk widgets:

    ```
    option add *insertOffTime 0
    ttk::style configure . -insertofftime 0
    ```

    Is this correct, or is there a better way?

    PS I know that most people find blinking cursors very helpful, but some
    people cannot work with them, see, e.g., https://jurta.org/en/prog/noblink

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Mark Summerfield@21:1/5 to Francois Vogel on Thu Jun 6 07:31:11 2024
    On Wed, 5 Jun 2024 21:00:08 +0200, Francois Vogel wrote:

    Le 05/06/2024 à 09:02, Mark Summerfield a écrit :
    According to https://core.tcl-lang.org/tips/doc/trunk/tip/675.md it is
    now possible to control cursor blink in ttk widgets.

    I often use both tk and ttk widgets (e.g., tk.text and ttk.entry) and
    don't want cursor blink in either.

    My understanding is that to achieve this I should now start my
    applications with these lines, the first for tk widgets and the second
    for ttk widgets:

    ```
    option add *insertOffTime 0 ttk::style configure . -insertofftime 0 ```

    Is this correct, or is there a better way?

    Yes, I would say that's correct.

    Regards,
    Francois

    Thanks.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)