804delta(3pm)

๐Ÿ’– Tk::804delta โ€” what is new for perl/Tk 804 ๐Ÿ’–

okay bestie, welcome to the Tk::804delta page!! ๐ŸŽ€ this is the glow-up doc: it tells you everything that changed between the Tk800 era and the Tk804 era of perl/Tk. think of it as the group chat recap after a major rebrand. โœจ


๐ŸŒธ DESCRIPTION ๐ŸŒธ

This document describes differences between the Tk800 series and the Tk804 series.

like, the whole before-and-after. buckle up. ๐Ÿ’…


๐Ÿ’€ Incompatible Changes ๐Ÿ’€

okay so warning: some stuff straight up changed and your old code might be crying. ๐Ÿ˜ญ

Tk804.028 era

In Tk804.028, there are some additional incompatible changes:

  • Return values of some Tk::Wm methods (e.g. aspect, wmGrid, iconposition, resizable ...) were changed from returning <em>tclish</em> lists (e.g. "1 2 3 4") to <em>perlish</em> lists (1,2,3,4). glow-up fr fr. โœจ
  • Tk::Wm::wmTracing needs an argument for setting on/off โ€” without an argument it just returns the current value. no argument = no vibe change, it's just reading the room. ๐Ÿ‘‘

All Tk804 releases

All Tk804 releases have the following incompatible changes:

  • Tk804 will only work with perl 5.8.0 and above. For older perl versions look for Tk800.025. sorry to the legacy girlies. ๐Ÿ™ˆ
  • curselection of Tk::Listbox now returns an <em>array reference</em> in scalar context. This means you have to write
        my(@selected) = $listbox->curselection

or

        my(@selected) = @{ $listbox->curselection }

now. yes literally both are valid, pick your fighter. ๐Ÿ’…

  • The fontActual method now returns the <em>pixel</em> value instead of the <em>point</em> value for -size. Pixel values are expressed as negative numbers. negative numbers!! it's giving "math but make it fashion". ๐Ÿงฎโœจ
  • Some enhancements from the "dash" patches are lost for now (i.e. -tile, -troughtile ...). rip to those, gone but not forgotten. ๐Ÿ•ฏ๏ธ
  • The -state option is not available anymore for Tk::Text tags. Use -elide instead. out with the old, in with the new. ๐Ÿ”ฅ

๐ŸŒˆ Enhancements ๐ŸŒˆ

the fun part!! the main character era. ๐Ÿ‘‘

  • Tk804 is Unicode-aware. yes she speaks every language now. ๐ŸŒ
  • It is possible to build Tk with Xft support on X11. This is strongly recommened if you are planning to make use of Unicode rendering capabilities of Tk. It also gives anti-aliased fonts for regular text (if you have TrueType or Type1 fonts and they are in your fontconfig config file). smooth fonts?? we love to see it. ๐Ÿฆ‹
  • The new method chooseDirectory is available as a standard directory selector. she picks folders, she's helpful, she's iconic. ๐Ÿ“๐Ÿ’–
  • Tk::PNG and Tk::JPEG are bundled now with the perl/Tk distribution, providing support for the image formats png and jpeg. no more extra shopping trips bestie, they come included. ๐Ÿ›๏ธ
  • Improvements to Tk::Listbox: new option -activestyle, new methods itemconfigure and itemcget, new virtual event <<ListboxSelect>>. she got a whole makeover. ๐Ÿ’…
  • More tests. (periodt. we love a tested queen. โœ…)

๐ŸŽ€ New Widgets ๐ŸŽ€

fresh arrivals, all of them serving looks:

  • Tk::Labelframe โ€” An alternative to Tk::LabFrame.
  • Tk::Panedwindow โ€” An alternative to Tk::Adjuster.
  • Tk::Spinbox โ€” An alternative to the CPAN module Tk::NumEntry.

๐Ÿ”ง Selected Bug Fixes ๐Ÿ”ง

bestie... this section is literally empty in the original. nothing listed. we move. ๐Ÿ’€

๐Ÿซถ Changed Internals ๐Ÿซถ

also empty!! the internals changed, but the doc is not telling us how. mystery era. ๐Ÿ™ˆ

๐Ÿ–ฅ๏ธ Platform Specific Problems ๐Ÿ–ฅ๏ธ

empty section, no problems listed. iconic of it honestly. โœจ

๐Ÿ”ฎ Future Directions ๐Ÿ”ฎ

yep, empty too. the future is unwritten, main character energy only. ๐Ÿ‘‘

๐Ÿ› Reporting Bugs ๐Ÿ›

If you find what you think is a bug, you might check the articles recently posted to the comp.lang.perl.tk newsgroup. go lurk first bestie, someone may have already posted about it. ๐Ÿ‘€

If you believe you have an unreported bug, please send a mail to <ptk@lists.stanford.edu> and/or <nick@ing-simmons.net>. Be sure to trim your bug down to a tiny but sufficient test case. tiny but sufficient โ€” do not dump your entire project in the email, we are begging. ๐Ÿ˜ญ


๐Ÿ‘€ SEE ALSO ๐Ÿ‘€

  • Tk
  • "Changes" file in the Perl/Tk distribution. (iykyk)

and that's the whole page, bestie!! ๐Ÿฆ‹ this was perl v5.40.1, dated 2025-04-13, brought to you by the perl/Tk girlies. stay Unicode-aware, stay Xft-smooth, and don't forget your -elide. ๐Ÿ’–โœจ๐ŸŽ€

๐Ÿ“ฆ where this page comes from