tcl::ch...xtwindow(n)

πŸ“¦
version 2.0 Β· 2 versions
, in fedora 43, fedora 44, nixos 26.05, nixpkgs unstable

tcl::chan::textwindow πŸ’–

okay bestie, welcome to the Reflected/virtual channel support corner of the tcllib manual, page tcl::ch...xtwindow(n). this one is short and sweet and it SLAPS, no cap.


✨ NAME ✨

tcl::chan::textwindow β€” Textwindow channel πŸŽ€


✨ SYNOPSIS ✨

package require Tcl 8.5 9

package require TclOO

package require tcl::chan::events ?1.1?

package require tcl::chan::textwindow ?1.1?

::tcl::chan::textwindow widget

like. look at that. five whole lines and one of them is literally just TclOO showing up to the party. πŸ’…


✨ DESCRIPTION ✨

so here's the vibe: the tcl::chan::textwindow package hands you a command that creates write-only channels wired straight into text widgets. anything you write to that channel? it gets printed into the widget it's attached to. that's it. that's the whole personality. πŸ¦‹

and the internal TclOO class doing the actual channel-handler work? it's a sub-class of the tcl::chan::events framework. she inherited the good genes. πŸ‘‘


✨ API ✨

the one and only command πŸ’…

  • ::tcl::chan::textwindow widget β€” this creates a brand new textwindow channel and gives you back its handle. anything you write to that channel is gonna show up in the associated widget. that's the deal. 🫢

✨ BUGS, IDEAS, FEEDBACK ✨

ngl, this doc and the package it's describing will undoubtedly have bugs and other problems. it's software, bestie. 😭 so please report them in the category virtchannel of the Tcllib Trackers: [http://core.tcl.tk/tcllib/reportlist](http://core.tcl.tk/tcllib/reportlist). and while you're at it, if you've got ideas for enhancements to either the package or the docs, send those too. we love a glow-up. ✨

when you're proposing code changes, please give us unified diffs β€” like, the output of diff -u. that's the format. periodt.

also, heads up: attachments are strongly preferred over inlined patches. how do you attach? go to the Edit form of the ticket right after you create it, then hit the left-most button in the secondary navigation bar. iykyk. πŸŽ€

✨ KEYWORDS ✨

Tk, reflected channel, text widget, tip 219, virtual channel 🌸


✨ CATEGORY ✨

Channels πŸ’œ


Copyright (c) 2009 Andreas Kupries <andreas_kupries@users.sourceforge.net> πŸ‘‘


and that's the whole page, bestie!! πŸŽ‰ this was tcl::ch...xtwindow(n), brought to you by tcllib version 1.1, and she's iconic, she's little, she ate. mwah. πŸ’–πŸ’…βœ¨

πŸ“¦ where this page comes from