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::Wmmethods (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::wmTracingneeds 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. ๐
curselectionofTk::Listboxnow 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
fontActualmethod 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
-stateoption is not available anymore forTk::Texttags. Use-elideinstead. 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
chooseDirectoryis available as a standard directory selector. she picks folders, she's helpful, she's iconic. ๐๐ Tk::PNGandTk::JPEGare bundled now with the perl/Tk distribution, providing support for the image formatspngandjpeg. no more extra shopping trips bestie, they come included. ๐๏ธ- Improvements to
Tk::Listbox: new option-activestyle, new methodsitemconfigureanditemcget, 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 toTk::LabFrame.Tk::Panedwindowโ An alternative toTk::Adjuster.Tk::Spinboxโ An alternative to the CPAN moduleTk::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
- debian trixie: perl-tk 1:804.036+dfsg1-5
- ubuntu questing: perl-tk 1:804.036+dfsg1-5
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms