cursor(3tk)

πŸ“¦
version 0.9 Β· 2 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ cursor(3tk) β€” Tk cursor routines ✨

okay bestie, welcome to cursor(3tk), the Tk cursor routines page πŸ’… this one lives in the tklib family and it's genuinely so useful, no cap.


πŸŽ€ NAME πŸŽ€

cursor β€” Procedures to handle CURSOR data πŸ¦‹


✨ SYNOPSIS ✨

package require Tk

package require cursor ?0.3.1?

::cursor::propagate widget cursor

::cursor::restore widget ?cursor?

::cursor::display ?parent?

πŸ’– DESCRIPTION πŸ’–

So the cursor package gives you commands to handle Tk cursors. that's the vibe. that's the whole job. πŸ‘‘


🌸 COMMANDS 🌸

here's what you actually get to play with:

  • ::cursor::propagate widget cursor β€” sets the cursor for the widget you named and every single one of its descendants to cursor. the whole family tree gets the same glow-up, fr fr. 🌈
  • ::cursor::restore widget ?cursor? β€” puts the original cursor back (or a previously set one) for the widget and all its descendants. and if you pass cursor? then that gets used on any widget that never had a preset cursor from an earlier ::cursor::propagate call. lowkey clever. 🫢
  • ::cursor::display ?parent? β€” pops up a dialog with a listbox holding all the cursor names. click one and it shows up right there in the dialog. this is literally just for looking at whatever cursors your platform has available β€” pure window shopping, bestie. πŸ’…

πŸ’€ BUGS, IDEAS, FEEDBACK πŸ’€

ngl, this document and the package it describes will undoubtedly have bugs and other problems. it's giving "we know, we know" 😭

so please report them in the category cursor of the Tklib Trackers: http://core.tcl.tk/tklib/reportlist.

and if you have ideas for enhancements β€” for the package, the docs, or both β€” report those too. we want them. πŸ™ˆ


πŸ”₯ SEE ALSO πŸ”₯


⭐ KEYWORDS ⭐

cursor


Copyright (c) Jeffrey Hobbs <jeff@hobbs.org>


and that's the whole page, bestie πŸŽ€ this one's from tklib, version 0.3.1, dated cursor(3tk) β€” go forth and make everything clickable and pretty βœ¨πŸ¦‹πŸ’–

πŸ“¦ where this page comes from