• tk and ttk cursor blink

    From Mark Summerfield@mark@qtrac.eu to comp.lang.tcl on Wed Jun 5 07:02:29 2024
    From Newsgroup: comp.lang.tcl

    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
    --- Synchronet 3.20a-Linux NewsLink 1.114
  • From Francois Vogel@francois.vogel.fv.NOSPAM@gmail.com to Mark Summerfield on Wed Jun 5 21:00:08 2024
    From Newsgroup: comp.lang.tcl

    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

    --- Synchronet 3.20a-Linux NewsLink 1.114
  • From Mark Summerfield@mark@qtrac.eu to comp.lang.tcl on Thu Jun 6 07:31:11 2024
    From Newsgroup: comp.lang.tcl

    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.
    --- Synchronet 3.20a-Linux NewsLink 1.114