My understanding was that Tcl/Tk >=8.7 would respect the users cursor blinking preferences.
But running this program (with or without the `option add` line) has an entry (presumably a ttk::entry) with a blinking cursor:
#!/usr/bin/env wish
option add *insertOffTime 0
set filename [tk_getOpenFile]
puts $filename
exit
Although the vast majority of people find blinking cursors useful, a tiny minority (which is still a lot of people), including me, I can't work blinking cursors. See for example, https://jurta.org/en/prog/noblink
Am 06.06.2023 um 10:17 schrieb Mark:
My understanding was that Tcl/Tk >=8.7 would respect the users cursor blinking preferences.
But running this program (with or without the `option add` line) has an entry (presumably a ttk::entry) with a blinking cursor:
#!/usr/bin/env wish
option add *insertOffTime 0
set filename [tk_getOpenFile]
puts $filename
exit
Although the vast majority of people find blinking cursors useful, a tiny minority (which is still a lot of people), including me, I can't work blinking cursors. See for example, https://jurta.org/en/prog/noblinkHi Mark,
thank you for the post. Could you give more details:
- platform / Window manager if on Linux
- TCL version
- tk version
Thank you,
Harald
My understanding was that Tcl/Tk >=8.7 would respect the users cursor blinking preferences.
But running this program (with or without the `option add` line) has an entry (presumably a ttk::entry) with a blinking cursor:
#!/usr/bin/env wish
option add *insertOffTime 0
set filename [tk_getOpenFile]
puts $filename
exit
Although the vast majority of people find blinking cursors useful, a tiny minority (which is still a lot of people), including me, I can't work blinking cursors. See for example, https://jurta.org/en/prog/noblink
Am 06.06.2023 um 10:17 schrieb Mark:
My understanding was that Tcl/Tk >=8.7 would respect the users cursor blinking preferences.
But running this program (with or without the `option add` line) has an entry (presumably a ttk::entry) with a blinking cursor:
#!/usr/bin/env wish
option add *insertOffTime 0
set filename [tk_getOpenFile]
puts $filename
exit
Although the vast majority of people find blinking cursors useful, a tiny minority (which is still a lot of people), including me, I can't work blinking cursors. See for example, https://jurta.org/en/prog/noblinkThe option insertOffTime only works with "standard" Tk widgets, but not with ttk widgets:
package require Tk
option add *insertOffTime 0
ttk::entry .e1
pack .e1 -expand true -fill both
.e1 insert end "ttk::entry is blinking"
entry .e2
pack .e2 -expand true -fill both
.e2 insert end "entry is not blinking"
Don't know, if blinking can be specified using ttk:styles.
Paul
On Tuesday, June 6, 2023 at 1:56:13 PM UTC+1, Paul Obermeier wrote:
Am 06.06.2023 um 10:17 schrieb Mark:
My understanding was that Tcl/Tk >=8.7 would respect the users cursor blinking preferences.
But running this program (with or without the `option add` line) has an entry (presumably a ttk::entry) with a blinking cursor:
#!/usr/bin/env wish
option add *insertOffTime 0
set filename [tk_getOpenFile]
puts $filename
exit
Although the vast majority of people find blinking cursors useful, a tiny minority (which is still a lot of people), including me, I can't work blinking cursors. See for example, https://jurta.org/en/prog/noblinkThe option insertOffTime only works with "standard" Tk widgets, but not with ttk widgets:
package require Tk
option add *insertOffTime 0
ttk::entry .e1
pack .e1 -expand true -fill both
.e1 insert end "ttk::entry is blinking"
entry .e2
pack .e2 -expand true -fill both
.e2 insert end "entry is not blinking"
Don't know, if blinking can be specified using ttk:styles.
PaulHi Paul,
Yes I knew that insertOffTime only applied to non-styled widgets. But I _thought_ that the ttk widgets were going to respect the user's blinking preferences. See https://core.tcl-lang.org/tk/tktedit/3531366fffffffffffffffffffffffffffffffff
| Sysop: | Keyop |
|---|---|
| Location: | Huddersfield, West Yorkshire, UK |
| Users: | 715 |
| Nodes: | 16 (1 / 15) |
| Uptime: | 160:15:28 |
| Calls: | 12,094 |
| Calls today: | 2 |
| Files: | 15,000 |
| Messages: | 6,517,761 |